File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,19 @@ spec:
33
33
{{- toYaml . | nindent 8 }}
34
34
{{- end }}
35
35
spec :
36
- {{- with .Values.podSecurityContext }}
37
- securityContext :
38
- {{- toYaml . | nindent 8 }}
39
- {{- end }}
36
+ {{- with .Values.podSecurityContext }}
37
+ securityContext :
38
+ {{- $fsGroupOverride := dict }}
39
+ {{- if hasKey $.Values.securityContext "fsGroup" }}
40
+ {{- $fsGroupOverride = dict "fsGroup" (int $.Values.securityContext.fsGroup) }}
41
+ {{- end }}
42
+ {{- merge $fsGroupOverride . | toYaml | nindent 8 }}
43
+ {{- else }}
44
+ {{- if .Values.securityContext.fsGroup }}
45
+ securityContext :
46
+ fsGroup : {{ int .Values.securityContext.fsGroup }}
47
+ {{- end }}
48
+ {{- end }}
40
49
affinity :
41
50
nodeAffinity :
42
51
requiredDuringSchedulingIgnoredDuringExecution :
You can’t perform that action at this time.
0 commit comments