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:
3333 {{- toYaml . | nindent 8 }}
3434 {{- end }}
3535 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 }}
4049 affinity :
4150 nodeAffinity :
4251 requiredDuringSchedulingIgnoredDuringExecution :
You can’t perform that action at this time.
0 commit comments