Fetch MKE/KAAS release versions from kaas-bootstrap templates
MOSSUST-122
Change-Id: I5a09b9ac457a5fcf6110a25bb3ce3d5003131c28
diff --git a/bm_mcc_mosk/kaas-mgmt/cluster.yaml b/bm_mcc_mosk/kaas-mgmt/cluster.yaml
index 435f5f2..b600fe4 100644
--- a/bm_mcc_mosk/kaas-mgmt/cluster.yaml
+++ b/bm_mcc_mosk/kaas-mgmt/cluster.yaml
@@ -18,7 +18,7 @@
value:
apiVersion: baremetal.k8s.io/v1alpha1
kind: BaremetalClusterProviderSpec
- release: mke-16-3-1-3-7-15
+ release: %MKE_RELEASE%
dnsNameservers:
- 172.18.176.6
dedicatedControlPlane: false
@@ -36,7 +36,7 @@
prometheusServer:
persistentVolumeClaimSize: 16Gi
kaas:
- release: kaas-2-28-1
+ release: %KAAS_RELEASE%
regional:
- provider: baremetal
helmReleases:
diff --git a/bm_mcc_mosk/seed/do_deploy_mcc_mgmt.sh b/bm_mcc_mosk/seed/do_deploy_mcc_mgmt.sh
index 3ecc3de..960427a 100755
--- a/bm_mcc_mosk/seed/do_deploy_mcc_mgmt.sh
+++ b/bm_mcc_mosk/seed/do_deploy_mcc_mgmt.sh
@@ -11,6 +11,10 @@
/root/kaas-bootstrap/bootstrap.sh bootstrapv2
+KAAS_RELEASE=$(yq .spec.providerSpec.value.kaas.release /root/kaas-bootstrap/templates/bm/cluster.yaml.template)
+MKE_RELEASE=$(yq .spec.providerSpec.value.release /root/kaas-bootstrap/templates/bm/cluster.yaml.template)
+sed -i "s/%MKE_RELEASE%/${MKE_RELEASE}/" /root/bm_mcc_mosk/kaas-mgmt/cluster.yaml
+sed -i "s/%KAAS_RELEASE%/${KAAS_RELEASE}/" /root/bm_mcc_mosk/kaas-mgmt/cluster.yaml
export KUBECONFIG=/root/.kube/kind-config-clusterapi
pushd /root/bm_mcc_mosk/kaas-mgmt