cleanup new validate webhooks
@@ -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 }}
\ No newline at end of file
