File tree Expand file tree Collapse file tree 6 files changed +18
-12
lines changed Expand file tree Collapse file tree 6 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 54
54
run : |
55
55
kind load docker-image $IMAGE --name=chart-testing
56
56
helm install $USER chart/tugger --debug --wait \
57
- --set=createMutatingWebhook =true \
57
+ --set=mutatingWebhook.create =true \
58
58
--set=image.tag=latest
59
59
60
60
- name : Test Mutation
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ helm install --name tugger \
67
67
--set docker.registryUrl=jainishshah17, \
68
68
--set whitelistNamespaces={kube-system,default}, \
69
69
--set whitelistRegistries={jainishshah17} \
70
- --set createValidatingWebhook =true \
71
- --set createMutatingWebhook =true \
70
+ --set validatingWebhook.create =true \
71
+ --set mutatingWebhook.create =true \
72
72
tugger/tugger
73
73
```
74
74
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v1
2
2
appVersion : " 0.1.8"
3
3
description : A Helm chart for Tugger
4
4
name : tugger
5
- version : 0.4.5
5
+ version : 0.4.6
6
6
keywords :
7
7
- DevOps
8
8
- helm
Original file line number Diff line number Diff line change 1
1
# enables optional features in the chart so they will be linted in the PR test
2
- createValidatingWebhook : true
3
- createMutatingWebhook : true
2
+ validatingWebhook :
3
+ create : true
4
+ mutatingWebhook :
5
+ create : true
4
6
env : prod
5
7
docker :
6
8
ifExists : true
Original file line number Diff line number Diff line change 13
13
{{ $caCert = $ca.Cert }}
14
14
{{- end }}
15
15
16
- {{- if .Values.createValidatingWebhook }}
16
+ {{- if or .Values.createValidatingWebhook .Values.validatingWebhook.create }}
17
17
---
18
18
apiVersion : admissionregistration.k8s.io/v1
19
19
kind : ValidatingWebhookConfiguration
@@ -42,7 +42,7 @@ webhooks:
42
42
resources :
43
43
- pods
44
44
scope : " Namespaced"
45
- failurePolicy : Ignore
45
+ failurePolicy : {{ default " Ignore" .Values.validatingWebhook.failurePolicy }}
46
46
clientConfig :
47
47
service :
48
48
name : {{ $serviceName }}
@@ -52,7 +52,7 @@ webhooks:
52
52
caBundle : {{ b64enc $caCert }}
53
53
{{- end }}
54
54
55
- {{- if .Values.createMutatingWebhook }}
55
+ {{- if or .Values.createMutatingWebhook .Values.mutatingWebhook.create }}
56
56
---
57
57
apiVersion : admissionregistration.k8s.io/v1
58
58
kind : MutatingWebhookConfiguration
@@ -76,7 +76,7 @@ webhooks:
76
76
apiGroups : [""]
77
77
apiVersions : ["v1"]
78
78
resources : ["pods"]
79
- failurePolicy : Ignore
79
+ failurePolicy : {{ default " Ignore" .Values.mutatingWebhook.failurePolicy }}
80
80
clientConfig :
81
81
service :
82
82
name : {{ $serviceName }}
Original file line number Diff line number Diff line change @@ -70,8 +70,12 @@ namespaceSelector:
70
70
# operator: NotIn
71
71
# values: ["0","1"]
72
72
73
- createValidatingWebhook : false
74
- createMutatingWebhook : false
73
+ validatingWebhook :
74
+ create : false
75
+ failurePolicy : # default: Ignore, options: Ignore, Fail
76
+ mutatingWebhook :
77
+ create : false
78
+ failurePolicy : # default: Ignore, options: Ignore, Fail
75
79
76
80
resources : {}
77
81
# We usually recommend not to specify default resources and to leave this as a conscious
You can’t perform that action at this time.
0 commit comments