Skip to content

Commit

Permalink
[stacks-blockchain-api] separate containerSecurityContext for volume-…
Browse files Browse the repository at this point in the history
…permissions
  • Loading branch information
CharlieC3 committed Sep 28, 2022
1 parent 1cf5a5d commit 33dc152
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions hirosystems/stacks-blockchain-api/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dependencies:
- name: stacks-blockchain
repository: https://charts.hiro.so/hirosystems
version: 1.1.0
version: 1.1.2
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.9.1
version: 11.9.2
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.17.1
digest: sha256:f946ed2a24c9d3269af44f19d9824f8852ef057c6cd49ef935dfbaad2222f58a
generated: "2022-09-27T09:58:24.643457-04:00"
digest: sha256:a077314d0eecd44e0520accff01323bbe8c2df249b490697ce948cc07ab3ef28
generated: "2022-09-28T14:03:25.537763-04:00"
2 changes: 1 addition & 1 deletion hirosystems/stacks-blockchain-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ sources:
- https://github.com/hirosystems/stacks-blockchain-api
- https://docs.hiro.so/api
- https://docs.hiro.so/get-started/stacks-blockchain-api
version: 1.1.1
version: 1.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ spec:
- /bin/bash
- -ec
- |
chown -R {{ .Values.apiWriter.initContainerSecurityContext.runAsUser }}:{{ .Values.apiWriter.initContainerSecurityContext.fsGroup }} {{ .Values.apiWriter.persistence.data.mountPath }}
chown -R {{ .Values.apiWriter.initContainerSecurityContext.runAsUser }}:{{ .Values.apiWriter.initContainerSecurityContext.fsGroup }} {{ .Values.apiWriter.persistence.bns.mountPath }}
{{- if .Values.apiWriter.initContainerSecurityContext.enabled }}
securityContext: {{- omit .Values.apiWriter.initContainerSecurityContext "enabled" | toYaml | nindent 12 }}
chown -R {{ .Values.apiWriter.containerSecurityContext.runAsUser }}:{{ .Values.apiWriter.containerSecurityContext.fsGroup }} {{ .Values.apiWriter.persistence.data.mountPath }}
chown -R {{ .Values.apiWriter.containerSecurityContext.runAsUser }}:{{ .Values.apiWriter.containerSecurityContext.fsGroup }} {{ .Values.apiWriter.persistence.bns.mountPath }}
{{- if .Values.apiWriter.volumePermissions.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.apiWriter.volumePermissions.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.apiWriter.volumePermissions.resources }}
resources: {{- toYaml .Values.apiWriter.volumePermissions.resources | nindent 12 }}
Expand Down

0 comments on commit 33dc152

Please sign in to comment.