File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 27
27
{{- toYaml . | nindent 8 }}
28
28
{{- end }}
29
29
spec :
30
+ {{- if ne .Values.securityContext.fsGroup "" }}
31
+ securityContext :
32
+ fsGroup : 65534
33
+ {{- end }}
30
34
affinity :
31
35
nodeAffinity :
32
36
requiredDuringSchedulingIgnoredDuringExecution :
@@ -172,6 +176,13 @@ spec:
172
176
name : {{ .Values.defaultWorkloadPoliciesMap }}
173
177
{{- end }}
174
178
optional : true
179
+ {{- if .Values.volumes.projected.serviceAccountToken }}
180
+ - name : token-vol
181
+ projected :
182
+ sources :
183
+ - serviceAccountToken :
184
+ path : token
185
+ {{- end }}
175
186
- name : registries-conf
176
187
configMap :
177
188
name : {{ .Values.registriesConfConfigMap }}
Original file line number Diff line number Diff line change @@ -108,3 +108,18 @@ psp:
108
108
109
109
# Override the excluded namespaces
110
110
excludedNamespaces :
111
+
112
+ # Allow specifying a fsGroup in
113
+ # spec:
114
+ # template:
115
+ # spec:
116
+ # securityContext:
117
+ # fsGroup: 65534 <-- here
118
+ securityContext :
119
+ fsGroup : " "
120
+
121
+ # A projected volume maps several existing volume sources into the same directory.
122
+ # https://kubernetes.io/docs/concepts/storage/volumes/#projected
123
+ volumes :
124
+ projected :
125
+ serviceAccountToken : false
You can’t perform that action at this time.
0 commit comments