build(kustomize): Tenant cordoning webhook

This commit is contained in:
Dario Tranchitella
2021-06-24 13:47:43 +02:00
parent 8804496bb2
commit a2e5bbf26d
2 changed files with 24 additions and 0 deletions
+21
View File
@@ -210,6 +210,27 @@ webhooks:
resources:
- services
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: system
path: /tenant-cordoning
failurePolicy: Fail
name: cordoning.tenant.capsule.clastix.io
rules:
- apiGroups:
- '*'
apiVersions:
- '*'
operations:
- CREATE
- UPDATE
- DELETE
resources:
- '*'
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
+3
View File
@@ -46,3 +46,6 @@
matchExpressions:
- key: capsule.clastix.io/tenant
operator: Exists
- op: add
path: /webhooks/8/rules/0/scope
value: Namespaced