diff --git a/stable/concourse/Chart.yaml b/stable/concourse/Chart.yaml index c16cdae4d3..f22caeeb43 100644 --- a/stable/concourse/Chart.yaml +++ b/stable/concourse/Chart.yaml @@ -1,5 +1,5 @@ name: concourse -version: 2.1.2 +version: 2.2.0 appVersion: 4.2.1 description: Concourse is a simple and scalable CI system. icon: https://avatars1.githubusercontent.com/u/7809479 diff --git a/stable/concourse/templates/worker-statefulset.yaml b/stable/concourse/templates/worker-statefulset.yaml index b61521175c..243729eee6 100644 --- a/stable/concourse/templates/worker-statefulset.yaml +++ b/stable/concourse/templates/worker-statefulset.yaml @@ -494,6 +494,13 @@ spec: path: worker_key - key: worker-key-pub path: worker_key.pub +{{- define "concourse.are-there-additional-volumes.with-the-name.concourse-work-dir" }} + {{- range .Values.worker.additionalVolumes }} + {{- if .name | eq "concourse-work-dir" }} + {{- .name }} + {{- end }} + {{- end }} +{{- end }} {{- if .Values.persistence.enabled }} volumeClaimTemplates: - metadata: @@ -512,8 +519,10 @@ spec: {{- end }} {{- end }} {{- else }} + {{ if include "concourse.are-there-additional-volumes.with-the-name.concourse-work-dir" . | not }} - name: concourse-work-dir emptyDir: {} + {{- end }} {{- end }} {{- if semverCompare "^1.7-0" .Capabilities.KubeVersion.GitVersion }} updateStrategy: diff --git a/stable/concourse/values.yaml b/stable/concourse/values.yaml index b8eb146817..0d82f35107 100644 --- a/stable/concourse/values.yaml +++ b/stable/concourse/values.yaml @@ -842,6 +842,15 @@ worker: # hostPath: # path: /dev/nvme0n1 # type: BlockDevice + # + # As a special exception, this allows taking over the `concourse-work-dir` + # volume (from the default emptyDir) if `persistence.enabled` is false: + # + # additionalVolumes: + # - name: concourse-work-dir + # hostPath: + # path: /mnt/locally-mounted-fast-disk/concourse + # type: DirectoryOrCreate ## Whether the workers should be forced to run on separate nodes. ## This is accomplished by setting their AntiAffinity with requiredDuringSchedulingIgnoredDuringExecution as opposed to preferred