wait for the mount.

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-03-04 12:08:17 +00:00
parent 3cfe695b76
commit c4567d0e05
1 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ spec:
mount -t overlay -o lowerdir=/extras/{{ join ":/extras/" .shares }},upperdir=/data/overlay-{{ .destName }}-upper,workdir=/data/overlay-{{ .destName }}-work overlay /combined/{{ .destName }};
sleep infinity;
{{- end }}
touch /combined/overlays-mounted;
lifecycle:
preStop:
exec:
@ -80,7 +81,7 @@ spec:
command:
- /bin/sh
- -c
- cd /scripts ; sh ./k8s.sh
- {{ if .Values.persistence.combineShares }}until [ -f /combined/overlays-mounted ]; do sleep 5; done; {{ end }}cd /scripts ; sh ./k8s.sh
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: cifs