diff --git a/charts/kubewarden-controller/templates/webhooks.yaml b/charts/kubewarden-controller/templates/webhooks.yaml index ecabe2f7d..923e6837f 100644 --- a/charts/kubewarden-controller/templates/webhooks.yaml +++ b/charts/kubewarden-controller/templates/webhooks.yaml @@ -126,3 +126,24 @@ webhooks: resources: - admissionpolicies sideEffects: None +- admissionReviewVersions: + - v1 + - v1beta1 + clientConfig: + service: + name: {{ include "kubewarden-controller.fullname" . }}-webhook-service + namespace: {{ .Release.Namespace }} + path: /validate-policies-kubewarden-io-v1-policyserver + failurePolicy: Fail + name: vpolicyserver.kb.io + rules: + - apiGroups: + - policies.kubewarden.io + apiVersions: + - v1 + operations: + - CREATE + - UPDATE + resources: + - policyservers + sideEffects: None