1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-30 19:35:06 +00:00

cleanup new validate webhooks (#5851)

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
shuting 2023-01-03 23:51:14 +08:00 committed by GitHub
parent 3624697fdc
commit 744d151468
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,11 +19,8 @@ spec:
- sh
- '-c'
- >-
kubectl delete validatingwebhookconfiguration kyverno-policy-validating-webhook-cfg;
kubectl delete validatingwebhookconfiguration kyverno-resource-validating-webhook-cfg;
kubectl delete mutatingwebhookconfiguration kyverno-policy-mutating-webhook-cfg;
kubectl delete mutatingwebhookconfiguration kyverno-resource-mutating-webhook-cfg;
kubectl delete mutatingwebhookconfiguration kyverno-verify-mutating-webhook-cfg;
kubectl delete validatingwebhookconfiguration -l webhook.kyverno.io/managed-by=kyverno;
kubectl delete mutatingwebhookconfiguration -l webhook.kyverno.io/managed-by=kyverno;
restartPolicy: Never
backoffLimit: 2
{{- end }}