mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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:
committed by
Kubernetes Prow Robot
parent
ebe482e5bd
commit
fc71f1f1ac
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user