Skip to content

Commit

Permalink
Add default configs to mutatingwebhookconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
  • Loading branch information
ritazh committed Jun 12, 2021
1 parent bf94eb3 commit b5e645a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/overlays/mutation_webhook/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ webhooks:
resources:
- '*'
sideEffects: None
timeoutSeconds: 3
namespaceSelector:
matchExpressions:
- key: admission.gatekeeper.sh/ignore
operator: DoesNotExist
6 changes: 6 additions & 0 deletions deploy/experimental/gatekeeper-mutation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,12 @@ webhooks:
- UPDATE
resources:
- '*'
sideEffects: None
timeoutSeconds: 3
namespaceSelector:
matchExpressions:
- key: admission.gatekeeper.sh/ignore
operator: DoesNotExist
---
apiVersion: v1
kind: ServiceAccount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ webhooks:
failurePolicy: Ignore
matchPolicy: Exact
name: mutation.gatekeeper.sh
namespaceSelector:
matchExpressions:
- key: admission.gatekeeper.sh/ignore
operator: DoesNotExist
rules:
- apiGroups:
- '*'
Expand All @@ -32,4 +36,5 @@ webhooks:
resources:
- '*'
sideEffects: None
timeoutSeconds: 3
{{- end }}

0 comments on commit b5e645a

Please sign in to comment.