From: garciadeblas Date: Tue, 5 Aug 2025 09:15:03 +0000 (+0200) Subject: Allow testing of osm-krm-functions by updating the image used by workflow templates... X-Git-Tag: v18.0.0~22 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F15317%2F1;p=osm%2Fdevops.git Allow testing of osm-krm-functions by updating the image used by workflow templates during full installation Change-Id: I9d734db6447cbc1c60feef98fe479e35ed9278f4 Signed-off-by: garciadeblas --- diff --git a/installers/30-deploy-mgmt-cluster.sh b/installers/30-deploy-mgmt-cluster.sh index f99c6f91..f5697b7a 100755 --- a/installers/30-deploy-mgmt-cluster.sh +++ b/installers/30-deploy-mgmt-cluster.sh @@ -115,6 +115,10 @@ TEMPLATES_DIR="${HERE}/flux/templates/sw-catalogs" TEMPLATES_DIR=$(readlink -f "${TEMPLATES_DIR}") # rsync -varhP "${TEMPLATES_DIR}" "${SW_CATALOGS_REPO_DIR}/" cp -r "${TEMPLATES_DIR}"/* "${SW_CATALOGS_REPO_DIR}/" +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 ##################################################################### diff --git a/installers/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/cluster-management-wft.yaml b/installers/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/cluster-management-wft.yaml index 852799b8..50b9b0e1 100644 --- a/installers/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/cluster-management-wft.yaml +++ b/installers/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/cluster-management-wft.yaml @@ -446,7 +446,7 @@ spec: value: "{{inputs.parameters.fleet_repo_dir}}/{{inputs.parameters.project_name}}/managed-resources/_management" container: - image: ttl.sh/osm-krm-functions:24h + image: opensourcemano/osm-krm-functions:testing-daily # imagePullPolicy: Always command: ["/app/scripts/entrypoint.sh"] args: