Merge "Deleting ic-nginx-ingress-controller at restore"

This commit is contained in:
Zuul 2022-08-11 18:07:34 +00:00 committed by Gerrit Code Review
commit 91183a878e

View File

@ -162,6 +162,13 @@
register: nginx_webhook_service register: nginx_webhook_service
ignore_errors: true ignore_errors: true
- name: If on system restore mode, kill ingress validating webhook pod so it can be recreated
shell: >-
kubectl delete pod -n kube-system
-l $(kubectl get service -n kube-system {{ nginx_webhook_service.stdout }}
-o jsonpath="{.spec.selector}" | tr -d "{}\"" | tr ":" "=")
when: mode == 'restore' and armada_check.rc == 0 and nginx_webhook_service.rc == 0
- name: Check ingress validating webhook service and pod status - name: Check ingress validating webhook service and pod status
shell: >- shell: >-
kubectl wait pod -n kube-system kubectl wait pod -n kube-system