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.
  • Loading branch information
suhlig committed May 7, 2024
1 parent 1199fde commit 77a89a4
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 77a89a4

Please # to comment.