diff --git a/charts/oes/templates/hooks/cleanup.yaml b/charts/oes/templates/hooks/cleanup.yaml index 490778c5..1f8768d3 100755 --- a/charts/oes/templates/hooks/cleanup.yaml +++ b/charts/oes/templates/hooks/cleanup.yaml @@ -20,8 +20,8 @@ spec: image: {{ .Values.spinnaker.halyard.image.repository }}:{{ .Values.spinnaker.halyard.image.tag }} command: ["/bin/bash","-c"] {{- if .Values.global.certManager.installed }} - args: ["kubectl delete issuer letsencrypt-{{ .Release.Namespace }}-spin; kubectl delete ingress oes-gate-ingress oes-ui-ingress {{ template "spinnaker.fullname" . }}-deck; kubectl delete secret ca-secret deck-authtls demo-authtls jwt-secret oes-cacerts oes-control-secret oes-gate-authtls oes-ui-authtls"] + args: ["kubectl delete issuer --ignore-not-found letsencrypt-{{ .Release.Namespace }}-spin; kubectl delete ingress --ignore-not-found oes-gate-ingress oes-ui-ingress {{ template "spinnaker.fullname" . }}-deck; kubectl delete secret --ignore-not-found ca-secret deck-authtls demo-authtls jwt-secret oes-cacerts oes-control-secret oes-gate-authtls oes-ui-authtls"] {{- else }} - args: ["kubectl delete ingress oes-gate-ingress oes-ui-ingress {{ template "spinnaker.fullname" . }}-deck; kubectl delete secret ca-secret jwt-secret oes-cacerts oes-control-secret"] + args: ["kubectl delete ingress --ignore-not-found oes-gate-ingress oes-ui-ingress {{ template "spinnaker.fullname" . }}-deck; kubectl delete secret --ignore-not-found ca-secret jwt-secret oes-cacerts oes-control-secret"] {{- end }} {{- end }}