Skip to content

Commit

Permalink
Added securityContext.supplementalGroups support to Pega deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
pegatim committed Oct 19, 2023
1 parent b31d316 commit d61e4b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/pega/templates/_pega-deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,20 @@ spec:
{{- else }}
fsGroup: 0
{{- end }}
{{- if .node.securityContext.supplementalGroups }}
supplementalGroups: [{{ .node.securityContext.supplementalGroups }}]
{{- end }}
{{- else }}
runAsUser: 9001
fsGroup: 0
{{- end }}
{{- else }}
{{- if .node.securityContext }}
{{- if .node.securityContext.supplementalGroups }}
securityContext:
supplementalGroups: [{{ .node.securityContext.supplementalGroups }}]
{{- end }}
{{- end }}
{{- end }}
containers:
# Name of the container
Expand Down
1 change: 1 addition & 0 deletions charts/pega/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ global:
# securityContext:
# runAsUser: 9001
# fsGroup: 0
# supplementalGroups: "1111,2222"

hpa:
enabled: true
Expand Down

0 comments on commit d61e4b3

Please sign in to comment.