stable/concourse: use the correct work dir in the container preamble (#7061)

* stable/concourse: use the correct work dir in the container preamble

There's a short preamble (written in shell) in the container that cleans
up before the container starts. It had the work dir hard-coded, while
its value has been configurable since a few chart versions.

Now it uses the same configured value.

Signed-off-by: Norbert Buchmueller <norbert.buchmueller@optiopay.com>

* stable/concourse: bump chart version to 1.16.1

Signed-off-by: Norbert Buchmueller <norbert.buchmueller@optiopay.com>

* stable/concourse: use the correct work dir in the volume's `mountPath`

Signed-off-by: Norbert Buchmueller <norbert.buchmueller@optiopay.com>
This commit is contained in:
Norbert Buchmüller
2018-09-06 14:17:16 -07:00
committed by k8s-ci-robot
parent a8cb0377d1
commit 4b07e34ec7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: concourse
version: 1.16.0
version: 1.16.1
appVersion: 3.14.1
description: Concourse is a simple and scalable CI system.
icon: https://avatars1.githubusercontent.com/u/7809479
@@ -39,7 +39,7 @@ spec:
- -c
- |-
cp /dev/null /tmp/.liveness_probe
rm -rf /concourse-work-dir/*
rm -rf ${CONCOURSE_WORK_DIR:-/concourse-work-dir}/*
while ! concourse retire-worker --name=${HOSTNAME} | grep -q worker-not-found; do
touch /tmp/.pre_start_cleanup
sleep 5
@@ -111,7 +111,7 @@ spec:
mountPath: /concourse-keys
readOnly: true
- name: concourse-work-dir
mountPath: /concourse-work-dir
mountPath: {{ .Values.concourse.workingDirectory | default "/concourse-work-dir" | quote }}
{{- if .Values.worker.additionalVolumeMounts }}
{{ toYaml .Values.worker.additionalVolumeMounts | indent 12 }}
{{- end }}