Skip to content

Commit

Permalink
Ensure data directory has correct rights in baza Helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Sep 29, 2022
1 parent 16d8aa6 commit e46c2c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helm/baza/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All user visible changes to this project will be documented in this file. This p



## [0.4.0] · 2022-09-??
## [0.4.0] · 2022-09-29
[0.4.0]: https://github.com/instrumentisto/baza/tree/helm%2Fbaza%2F0.4.0/helm/baza

### BC Breaks
Expand All @@ -17,6 +17,10 @@ All user visible changes to this project will be documented in this file. This p

- Optional `ingress.className` value.

### Fixed

- `baza` container not starting when data is persisted.




Expand Down
8 changes: 8 additions & 0 deletions helm/baza/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ spec:
- name: {{ printf "%s.nginx.registry" (include "baza.fullname" .) | quote }}
{{- end }}
{{- end }}
initContainers:
- name: chown
image: alpine:latest
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
command: ["chown", "-R", "65534:65534", "/var/lib/baza"]
volumeMounts:
- name: data
mountPath: /var/lib/baza/
containers:
- name: baza
image: {{ printf "%s:%s" .Values.image.repository .Values.image.tag | quote }}
Expand Down

0 comments on commit e46c2c1

Please sign in to comment.