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 }} {{- if .Values.persistence.combineShares }}
- name: overlaymagic - name: overlaymagic
image: busybox image: busybox
securityContext:
privileged: true
command: command:
- /bin/sh - /bin/sh
- -c - -c
@ -61,6 +63,16 @@ spec:
- /bin/sh - /bin/sh
- -c - -c
- {{ range .Values.persistence.sharesToCombine }}umount /combined/{{ .destName }}; {{- end }} - {{ 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 }} {{- end }}
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@ -196,3 +208,7 @@ spec:
claimName: {{ $fullName }}-{{ .name }} claimName: {{ $fullName }}-{{ .name }}
{{- end }} {{- end }}
{{ end -}} {{ end -}}
{{ if .Values.persistence.combineShares }}
- name: combineRoot
emptyDir: {}
{{ end -}}