From eafd15703b0ac3592d34ac9a3202598fd40f461e Mon Sep 17 00:00:00 2001 From: Steffen Uhlig Date: Tue, 7 May 2024 14:54:29 +0200 Subject: [PATCH] Fix cleanup of the worker workDir in the init container The quotes are including the asterisk, which makes it match practically nothing. Signed-off-by: Steffen Uhlig --- templates/worker-statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/worker-statefulset.yaml b/templates/worker-statefulset.yaml index 38241873..b388b4bb 100644 --- a/templates/worker-statefulset.yaml +++ b/templates/worker-statefulset.yaml @@ -77,7 +77,7 @@ spec: for v in $((btrfs subvolume list --sort=-ogen "{{ .Values.concourse.worker.workDir }}" || true) | awk '{print $9}'); do (btrfs subvolume show "{{ .Values.concourse.worker.workDir }}/$v" && btrfs subvolume delete "{{ .Values.concourse.worker.workDir }}/$v") || true done - rm -rf "{{ .Values.concourse.worker.workDir }}/*" + rm -rf "{{ .Values.concourse.worker.workDir }}"/* volumeMounts: - name: concourse-work-dir mountPath: {{ .Values.concourse.worker.workDir | quote }}