From 5c5c2a77fee4f45c8f9426963c5c6a5305f77652 Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Thu, 7 Dec 2023 22:48:45 -0700 Subject: [PATCH] fix: configure webhook to ignore kube-system Fixes #461. --- config/webhook/core_webhook.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/webhook/core_webhook.yaml b/config/webhook/core_webhook.yaml index fa7305f3..7b6c5a48 100644 --- a/config/webhook/core_webhook.yaml +++ b/config/webhook/core_webhook.yaml @@ -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: - ""