Skip to content

Commit

Permalink
Add update image tag for failback maintenance page
Browse files Browse the repository at this point in the history
  • Loading branch information
johnake committed Jun 25, 2024
1 parent 2feb35d commit f6f17c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions maintenance_page/scripts/failback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f6f17c1

Please sign in to comment.