Skip to content

Commit

Permalink
build(helm): support for admission review version to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
prometherion committed Jun 27, 2021
1 parent 99e1589 commit 284e7da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion charts/capsule/templates/mutatingwebhookconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ metadata:
{{- include "capsule.labels" . | nindent 4 }}
webhooks:
- admissionReviewVersions:
- v1beta1
- v1
- v1beta1
clientConfig:
caBundle: Cg==
service:
Expand Down
14 changes: 11 additions & 3 deletions charts/capsule/templates/validatingwebhookconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
{{- include "capsule.labels" . | nindent 4 }}
webhooks:
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
Expand Down Expand Up @@ -37,6 +38,7 @@ webhooks:
sideEffects: None
timeoutSeconds: {{ .Values.validatingWebhooksTimeoutSeconds }}
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
Expand All @@ -58,8 +60,8 @@ webhooks:
- networking.k8s.io
- extensions
apiVersions:
- v1beta1
- v1
- v1beta1
operations:
- CREATE
- UPDATE
Expand All @@ -69,6 +71,7 @@ webhooks:
sideEffects: None
timeoutSeconds: {{ .Values.validatingWebhooksTimeoutSeconds }}
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
Expand Down Expand Up @@ -97,7 +100,8 @@ webhooks:
sideEffects: None
timeoutSeconds: {{ .Values.validatingWebhooksTimeoutSeconds }}
- admissionReviewVersions:
- v1beta1
- v1
- v1beta1
clientConfig:
caBundle: Cg==
service:
Expand Down Expand Up @@ -127,6 +131,7 @@ webhooks:
sideEffects: None
timeoutSeconds: {{ .Values.validatingWebhooksTimeoutSeconds }}
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
Expand Down Expand Up @@ -156,6 +161,7 @@ webhooks:
sideEffects: None
timeoutSeconds: {{ .Values.validatingWebhooksTimeoutSeconds }}
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
Expand Down Expand Up @@ -183,6 +189,7 @@ webhooks:
sideEffects: None
timeoutSeconds: {{ .Values.validatingWebhooksTimeoutSeconds }}
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
Expand Down Expand Up @@ -213,7 +220,8 @@ webhooks:
sideEffects: None
timeoutSeconds: {{ .Values.validatingWebhooksTimeoutSeconds }}
- admissionReviewVersions:
- v1beta1
- v1
- v1beta1
clientConfig:
caBundle: Cg==
service:
Expand Down

0 comments on commit 284e7da

Please sign in to comment.