Privileged to mount, plus mounts.

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-03-04 11:41:46 +00:00
parent fd5da0635c
commit 203d236188
1 changed files with 16 additions and 0 deletions

View File

@ -43,6 +43,8 @@ spec:
{{- if .Values.persistence.combineShares }}
- name: overlaymagic
image: busybox
securityContext:
privileged: true
command:
- /bin/sh
- -c
@ -61,6 +63,16 @@ spec:
- /bin/sh
- -c
- {{ range .Values.persistence.sharesToCombine }}umount /combined/{{ .destName }}; {{- end }}
volumeMounts:
- mountPath: /data
name: data
{{- range .Values.persistence.extraPVCShares }}
- mountPath: /extras/{{ .name }}
name: {{ .name }}
{{- end }}
- mountPath: /combined
mountPropagation: Bidirectional
name: combineRoot
{{- end }}
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@ -196,3 +208,7 @@ spec:
claimName: {{ $fullName }}-{{ .name }}
{{- end }}
{{ end -}}
{{ if .Values.persistence.combineShares }}
- name: combineRoot
emptyDir: {}
{{ end -}}