Skip to content

Commit

Permalink
Merge pull request #361 from suhlig/fix-cleanup-on-worker-init
Browse files Browse the repository at this point in the history
Fix cleanup of the worker workDir in the init container
  • Loading branch information
taylorsilva authored Feb 4, 2025
2 parents c920752 + eafd157 commit 3d345c0
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 3d345c0

Please sign in to comment.