File tree 3 files changed +19
-6
lines changed
3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ sources:
25
25
- https://github.com/bitcoin/bitcoin
26
26
- https://github.com/ruimarinho/docker-bitcoin-core
27
27
- https://bitcoin.org
28
- version : 1.0.1
28
+ version : 1.1.0
Original file line number Diff line number Diff line change 88
88
else
89
89
echo "Previous data found. Exiting."
90
90
fi
91
- {{- if .Values.containerSecurityContext .enabled }}
92
- securityContext : {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
91
+ {{- if .Values.initContainerSecurityContext .enabled }}
92
+ securityContext : {{- omit .Values.initContainerSecurityContext "enabled" | toYaml | nindent 12 }}
93
93
{{- end }}
94
94
{{- if .Values.resources }}
95
95
resources : {{- toYaml .Values.resources | nindent 12 }}
@@ -109,9 +109,9 @@ spec:
109
109
- /bin/bash
110
110
- -ec
111
111
- |
112
- chown -R {{ .Values.containerSecurityContext .runAsUser }}:{{ .Values.containerSecurityContext .fsGroup }} {{ .Values.persistence.mountPath }}
113
- {{- if .Values.containerSecurityContext .enabled }}
114
- securityContext : {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
112
+ chown -R {{ .Values.initContainerSecurityContext .runAsUser }}:{{ .Values.initContainerSecurityContext .fsGroup }} {{ .Values.persistence.mountPath }}
113
+ {{- if .Values.initContainerSecurityContext .enabled }}
114
+ securityContext : {{- omit .Values.initContainerSecurityContext "enabled" | toYaml | nindent 12 }}
115
115
{{- end }}
116
116
{{- if .Values.volumePermissions.resources }}
117
117
resources : {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
Original file line number Diff line number Diff line change @@ -228,6 +228,19 @@ containerSecurityContext:
228
228
runAsNonRoot : true
229
229
readOnlyRootFilesystem : false
230
230
231
+ # # Configure Init Container Security Context
232
+ # # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
233
+ # # @param initContainerSecurityContext.enabled Enabled bitcoin-core init containers' Security Context
234
+ # # @param initContainerSecurityContext.runAsUser Set bitcoin-core init containers' Security Context runAsUser
235
+ # # @param initContainerSecurityContext.runAsNonRoot Set bitcoin-core init containers' Security Context runAsNonRoot
236
+ # # @param initContainerSecurityContext.readOnlyRootFilesystem Set bitcoin-core init containers' Security Context runAsNonRoot
237
+ # #
238
+ initContainerSecurityContext :
239
+ enabled : false
240
+ runAsUser : 1001
241
+ runAsNonRoot : true
242
+ readOnlyRootFilesystem : false
243
+
231
244
# # @param existingConfigmap The name of an existing ConfigMap with your custom configuration for bitcoin-core
232
245
# #
233
246
existingConfigmap :
You can’t perform that action at this time.
0 commit comments