From f6f17c1631e2df9d195dd50fc9664222839329c7 Mon Sep 17 00:00:00 2001 From: John Ake Date: Tue, 25 Jun 2024 10:19:50 +0100 Subject: [PATCH] Add update image tag for failback maintenance page --- maintenance_page/scripts/failback.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maintenance_page/scripts/failback.sh b/maintenance_page/scripts/failback.sh index 6ed30bf8d4..409f816bc0 100755 --- a/maintenance_page/scripts/failback.sh +++ b/maintenance_page/scripts/failback.sh @@ -27,5 +27,9 @@ kubectl -n ${NAMESPACE} delete --ignore-not-found=true -f maintenance_page/mani echo Delete maintenance service kubectl -n ${NAMESPACE} delete --ignore-not-found=true -f maintenance_page/manifests/maintenance/service_maintenance.yml +echo Update image tag +perl -p -e "s/#MAINTENANCE_IMAGE_TAG#/dummy-tag/" maintenance_page/manifests/maintenance/deployment_maintenance.yml.tmpl \ + > maintenance_page/manifests/maintenance/deployment_maintenance.yml + echo Delete maintenance app kubectl -n ${NAMESPACE} delete --ignore-not-found=true -f maintenance_page/manifests/maintenance/deployment_maintenance.yml