From a223f96e2f2df047c6d2f6ae1a174616f003201e Mon Sep 17 00:00:00 2001 From: jiahui Date: Tue, 26 Sep 2023 13:29:35 +0800 Subject: [PATCH] add account webhook namespaceSelector matchExpressions with uer ns label --- controllers/account/deploy/manifests/deploy.yaml.tmpl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/controllers/account/deploy/manifests/deploy.yaml.tmpl b/controllers/account/deploy/manifests/deploy.yaml.tmpl index b3472feeca76..ebbffce87884 100644 --- a/controllers/account/deploy/manifests/deploy.yaml.tmpl +++ b/controllers/account/deploy/manifests/deploy.yaml.tmpl @@ -1398,12 +1398,8 @@ webhooks: name: debt.sealos.io namespaceSelector: matchExpressions: - - key: metadata.name - operator: NotIn - values: - - account-system - - kube-system - - calico-system + - key: user.sealos.io/owner + operator: Exists rules: - apiGroups: - '*'