Skip to content

Commit

Permalink
[bitcoin-core] fix fsGroup usage
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Sep 28, 2022
1 parent 7abe6ed commit 3cd27d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.2
version: 1.1.3
4 changes: 2 additions & 2 deletions hirosystems/bitcoin-core/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ spec:
tar zxvf ${DATA_DIR}/archive.tar.gz -C ${DATA_DIR}
rm -f ${DATA_DIR}/archive.tar.gz
echo "Setting permissions"
chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.containerSecurityContext.fsGroup }} ${DATA_DIR}
chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} ${DATA_DIR}
else
echo "Previous data found. Exiting."
fi
Expand All @@ -111,7 +111,7 @@ spec:
- /bin/bash
- -ec
- |
chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.containerSecurityContext.fsGroup }} {{ .Values.persistence.mountPath }}
chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} {{ .Values.persistence.mountPath }}
{{- if .Values.volumePermissions.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.volumePermissions.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit 3cd27d2

Please sign in to comment.