From a8e273c0c81e255aad94d38777061d5cf5a17fe4 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 9 Sep 2025 13:47:40 +0200 Subject: [PATCH] Consider MGMT_CLUSTER_CA_FILE during population of SW catalog repo folder Change-Id: I7615600a84310c7cfae33f64ccdd1436cb2214c7 Signed-off-by: garciadeblas --- installers/30-deploy-mgmt-cluster.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installers/30-deploy-mgmt-cluster.sh b/installers/30-deploy-mgmt-cluster.sh index f5697b7a..a7ab6082 100755 --- a/installers/30-deploy-mgmt-cluster.sh +++ b/installers/30-deploy-mgmt-cluster.sh @@ -119,6 +119,11 @@ if [ -n "${OSM_DOCKER_TAG}" ]; then # Replace the OSM Docker tag in the WF templates find "${SW_CATALOGS_REPO_DIR}/infra-configs/osm-workflows/templates/wf-templates/building-blocks" -type f -name "*.yaml" -exec sed -i "s|opensourcemano/osm-krm-functions:testing-daily|${DOCKER_REGISTRY_URL}${DOCKER_USER}/osm-krm-functions:${OSM_DOCKER_TAG}|g" {} + fi +if [ -n "${MGMT_CLUSTER_CA_FILE}" ]; then + # Update secret-template for Flux bootstrap to add CA file + echo "data:" >> "${SW_CATALOGS_REPO_DIR}/cloud-resources/flux-remote-bootstrap/bootstrap/manifests/secret/secret-template.yaml" + echo " ca.crt: $(base64 -w 0 "${MGMT_CLUSTER_CA_FILE}")" >> "${SW_CATALOGS_REPO_DIR}/cloud-resources/flux-remote-bootstrap/bootstrap/manifests/secret/secret-template.yaml" +fi ##################################################################### -- 2.25.1