File tree 4 files changed +22
-17
lines changed
4 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 22
22
{ {- toYaml . | nindent 8 } }
23
23
{ {- end } }
24
24
serviceAccountName: { { include " traefik.serviceAccountName" . } }
25
+ automountServiceAccountToken: true
25
26
terminationGracePeriodSeconds: { { default 60 .Values.deployment.terminationGracePeriodSeconds } }
26
27
hostNetwork: { { .Values.hostNetwork } }
27
28
{ {- with .Values.deployment.dnsPolicy } }
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ metadata:
10
10
{{- with .Values.serviceAccountAnnotations }}
11
11
{{- toYaml . | nindent 4 }}
12
12
{{- end }}
13
+ automountServiceAccountToken : false
13
14
{{- end -}}
Original file line number Diff line number Diff line change @@ -2,11 +2,26 @@ suite: Deployment configuration
2
2
templates :
3
3
- deployment.yaml
4
4
tests :
5
- - it : should have 1 replica by default
5
+ - it : should provide expected defaults
6
6
asserts :
7
7
- equal :
8
8
path : spec.replicas
9
9
value : 1
10
+ - equal :
11
+ path : spec.template.spec.automountServiceAccountToken
12
+ value : true
13
+ - equal :
14
+ path : spec.strategy.type
15
+ value : RollingUpdate
16
+ - equal :
17
+ path : spec.strategy.rollingUpdate.maxUnavailable
18
+ value : 0
19
+ - equal :
20
+ path : spec.strategy.rollingUpdate.maxSurge
21
+ value : 1
22
+ - equal :
23
+ path : metadata.namespace
24
+ value : NAMESPACE
10
25
- it : should have the specified amount of replicas when specified via values
11
26
set :
12
27
deployment :
@@ -23,17 +38,6 @@ tests:
23
38
- equal :
24
39
path : spec.revisionHistoryLimit
25
40
value : 1
26
- - it : should have a rollingUpdate strategy with default values
27
- asserts :
28
- - equal :
29
- path : spec.strategy.type
30
- value : RollingUpdate
31
- - equal :
32
- path : spec.strategy.rollingUpdate.maxUnavailable
33
- value : 0
34
- - equal :
35
- path : spec.strategy.rollingUpdate.maxSurge
36
- value : 1
37
41
- it : should have a custom merged rollingUpdate strategy with specified values
38
42
set :
39
43
updateStrategy :
@@ -160,11 +164,6 @@ tests:
160
164
- equal :
161
165
path : spec.strategy.type
162
166
value : OnDelete
163
- - it : should use helm managed namespace as default behavior
164
- asserts :
165
- - equal :
166
- path : metadata.namespace
167
- value : NAMESPACE
168
167
- it : should accept overridden namespace
169
168
set :
170
169
namespaceOverride : " traefik-ns-override"
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ tests:
28
28
path : metadata.name
29
29
value : RELEASE-NAME-traefik
30
30
template : rbac/serviceaccount.yaml
31
+ - equal :
32
+ path : automountServiceAccountToken
33
+ value : false
34
+ template : rbac/serviceaccount.yaml
31
35
- equal :
32
36
path : spec.template.spec.serviceAccountName
33
37
value : RELEASE-NAME-traefik
You can’t perform that action at this time.
0 commit comments