Allow testing of osm-krm-functions by updating the image used by workflow templates... 17/15317/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 5 Aug 2025 09:15:03 +0000 (11:15 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 5 Aug 2025 09:15:19 +0000 (11:15 +0200)
Change-Id: I9d734db6447cbc1c60feef98fe479e35ed9278f4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/30-deploy-mgmt-cluster.sh
installers/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/cluster-management-wft.yaml

index f99c6f9..f5697b7 100755 (executable)
@@ -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
 
 #####################################################################
 
index 852799b..50b9b0e 100644 (file)
@@ -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: