Skip to content

Commit

Permalink
Fix cleanup of the worker workDir in the init container
Browse files Browse the repository at this point in the history
The quotes are including the asterisk, which makes it match practically nothing.

Signed-off-by: Steffen Uhlig <Steffen.Uhlig@de.ibm.com>
  • Loading branch information
suhlig committed Jun 3, 2024
1 parent 1199fde commit eafd157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/worker-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit eafd157

Please # to comment.