mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +00:00
fix: helm pre-delete-hook (#8381)
Signed-off-by: Markus Mansshardt <15368510+oaxiento@users.noreply.github.com>
This commit is contained in:
parent
fa4823a0e9
commit
d4951476b2
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ spec:
|
|||
- sh
|
||||
- '-c'
|
||||
- |-
|
||||
kubectl scale -n {{ template "kyverno.namespace" . }} deployment --all --replicas=0
|
||||
kubectl scale -n {{ template "kyverno.namespace" . }} deployment -l app.kubernetes.io/part-of={{ template "kyverno.fullname" . }} --replicas=0
|
||||
sleep 30
|
||||
kubectl delete validatingwebhookconfiguration -l webhook.kyverno.io/managed-by=kyverno
|
||||
kubectl delete mutatingwebhookconfiguration -l webhook.kyverno.io/managed-by=kyverno
|
||||
|
|
Loading…
Add table
Reference in a new issue