build(kustomize): webhook for image PullPolicy

This commit is contained in:
Dario Tranchitella
2021-06-14 10:53:55 +02:00
parent 630e802708
commit bf79c25a8a
3 changed files with 27 additions and 2 deletions
+1 -1
View File
@@ -7,4 +7,4 @@ kind: Kustomization
images:
- name: controller
newName: quay.io/clastix/capsule
newTag: v0.0.5
newTag: v0.1.0-rc1
+19
View File
@@ -33,6 +33,25 @@ metadata:
creationTimestamp: null
name: validating-webhook-configuration
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: system
path: /validating-imagepullpolicy
failurePolicy: Fail
name: validating-image-pull-policy.capsule.clastix.io
rules:
- apiGroups:
- ""
apiVersions:
- v1
operations:
- CREATE
resources:
- pods
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
+7 -1
View File
@@ -11,7 +11,7 @@
- key: capsule.clastix.io/tenant
operator: Exists
- op: add
path: /webhooks/3/namespaceSelector
path: /webhooks/2/namespaceSelector
value:
matchExpressions:
- key: capsule.clastix.io/tenant
@@ -40,3 +40,9 @@
matchExpressions:
- key: capsule.clastix.io/tenant
operator: Exists
- op: add
path: /webhooks/8/namespaceSelector
value:
matchExpressions:
- key: capsule.clastix.io/tenant
operator: Exists