Correctly quote directory name in the initContainer script. (#17920)

The original quoting prevented the globbing expansion to happen,
making workdir content persist across volume restarts. This PR
modifies the behavior to allow for the expansion.

Note: this is not a full-featured fix to this issue (e.g. doesn't
handle dotfiles) and depending on how/whether concourse does any
shell escaping, this might need some further work.

Signed-off-by: Milan Plzik <milan.plzik@ceai.io>
This commit is contained in:
Milan Plžík
2019-10-15 06:43:53 -07:00
committed by Kubernetes Prow Robot
parent ebe482e5bd
commit fc71f1f1ac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: concourse
version: 8.2.6
version: 8.2.7
appVersion: 5.6.0
description: Concourse is a simple and scalable CI system.
icon: https://avatars1.githubusercontent.com/u/7809479
@@ -61,7 +61,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 }}