fix: yaml installer should use namespace selector for pods webhook (#484)

This commit is contained in:
Dario Tranchitella
2021-12-19 00:01:16 +01:00
committed by GitHub
parent d7baf18bf9
commit 4a6fd49554
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -1614,6 +1614,10 @@ webhooks:
path: /pods
failurePolicy: Fail
name: pods.capsule.clastix.io
namespaceSelector:
matchExpressions:
- key: capsule.clastix.io/tenant
operator: Exists
rules:
- apiGroups:
- ""
+6
View File
@@ -22,6 +22,12 @@
matchExpressions:
- key: capsule.clastix.io/tenant
operator: Exists
- op: add
path: /webhooks/5/namespaceSelector
value:
matchExpressions:
- key: capsule.clastix.io/tenant
operator: Exists
- op: add
path: /webhooks/6/namespaceSelector
value: