Skip to content

Commit

Permalink
feat: add PolicyServer validating webhook
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrizio Sestito <[email protected]>
  • Loading branch information
fabriziosestito committed Sep 22, 2023
1 parent 4124a5b commit 6bcd3ba
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions charts/kubewarden-controller/templates/webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6bcd3ba

Please sign in to comment.