Skip to content

Commit

Permalink
Support specifying fsGroup in springboot chart
Browse files Browse the repository at this point in the history
Might especially be useful with service account sometimes, e.g. see:

aws/amazon-eks-pod-identity-webhook#8 (comment)
kubernetes/kubernetes#82573
  • Loading branch information
modax committed Feb 2, 2021
1 parent 7cfbe89 commit ecb2190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/springboot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ spec:
{{- end }}
securityContext:
runAsUser: {{ required "podUID must be specified!" .Values.podUID }}
{{- if .Values.fsGroup }}
fsGroup: {{ .Values.fsGroup }}
{{- end }}
{{ if .Values.initContainers }}
initContainers:
{{ toYaml .Values.initContainers | indent 8 }}
Expand Down

0 comments on commit ecb2190

Please sign in to comment.