Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor YAML to Use Template Values for Security Context #1818

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/database/database-ss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ spec:
{{- end }}
spec:
securityContext:
runAsUser: 999
fsGroup: 999
runAsUser: {{ .Values.database.securityContext.runAsUser }}
fsGroup: {{ .Values.database.securityContext.fsGroup }}
{{- if .Values.database.internal.serviceAccountName }}
serviceAccountName: {{ .Values.database.internal.serviceAccountName }}
{{- end -}}
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,10 @@ database:
## Additional deployment labels
podLabels: {}

securityContext:
runAsUser: 999
fsGroup: 999

redis:
# if external Redis is used, set "type" to "external"
# and fill the connection information in "external" section
Expand Down
Loading