Skip to content

Commit

Permalink
[bitcoin-core] separate containerSecurityContext for volume-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Sep 28, 2022
1 parent 6108e2b commit b8360c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hirosystems/bitcoin-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ sources:
- https://github.com/bitcoin/bitcoin
- https://github.com/ruimarinho/docker-bitcoin-core
- https://bitcoin.org
version: 1.1.0
version: 1.1.1
6 changes: 3 additions & 3 deletions hirosystems/bitcoin-core/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ spec:
- /bin/bash
- -ec
- |
chown -R {{ .Values.initContainerSecurityContext.runAsUser }}:{{ .Values.initContainerSecurityContext.fsGroup }} {{ .Values.persistence.mountPath }}
{{- if .Values.initContainerSecurityContext.enabled }}
securityContext: {{- omit .Values.initContainerSecurityContext "enabled" | toYaml | nindent 12 }}
chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.containerSecurityContext.fsGroup }} {{ .Values.persistence.mountPath }}
{{- if .Values.volumePermissions.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.volumePermissions.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.volumePermissions.resources }}
resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
Expand Down

0 comments on commit b8360c7

Please sign in to comment.