Skip to content

Commit

Permalink
allowing consumer to set securityContext on authService (using origin…
Browse files Browse the repository at this point in the history
…al values as default)
  • Loading branch information
cjvirtucio87 committed Dec 1, 2024
1 parent 9b1c553 commit 7274ea8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ spec:
{{- range $.Values.stunnerAuthService.deployment.container.authService.args }}
- {{ . }}
{{- end }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
{{- with $.Values.stunnerAuthService.deployment.container.authService.securityContext }}
securityContext: {{- toYaml . | nindent 16 }}
{{- end }}
resources: {{- toYaml .deployment.container.authService.resources | nindent 12 }}
nodeSelector: {{- toYaml .deployment.nodeSelector | nindent 8 }}
tolerations: {{- toYaml .deployment.tolerations | nindent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions helm/stunner-gateway-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ stunnerAuthService:
# - name: docker-registry-secret
container:
authService:
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
image:
name: docker.io/l7mp/stunner-auth-server
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 7274ea8

Please sign in to comment.