Skip to content

Commit

Permalink
fix: configure webhook to ignore kube-system
Browse files Browse the repository at this point in the history
Fixes #461.
  • Loading branch information
enocom committed Dec 9, 2023
1 parent 1a99e64 commit a433af2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/webhook/core_webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ webhooks:
failurePolicy: Ignore
name: pods.proxy.cloudsql.google.com
matchPolicy: Equivalent
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values:
- kube-system
rules:
- apiGroups:
- ""
Expand Down
6 changes: 6 additions & 0 deletions installer/cloud-sql-proxy-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,12 @@ webhooks:
failurePolicy: Ignore
matchPolicy: Equivalent
name: pods.proxy.cloudsql.google.com
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values:
- kube-system
rules:
- apiGroups:
- ""
Expand Down

0 comments on commit a433af2

Please sign in to comment.