File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ spec:
116116 subPath : worker-additional-certs.pem
117117 readOnly : true
118118 {{- end }}
119+ {{- if include "concourse.are-there-additional-volumes.with-the-name.concourse-work-dir" . | not }}
120+ - name : concourse-work-dir
121+ mountPath : {{ .Values.concourse.worker.workDir | quote }}
122+ {{- end }}
119123
120124{{- if .Values.worker.additionalVolumeMounts }}
121125{{ toYaml .Values.worker.additionalVolumeMounts | indent 12 }}
@@ -147,6 +151,13 @@ spec:
147151 release : {{ .Release.Name | quote }}
148152 {{- end }}
149153 volumes :
154+ {{- if include "concourse.are-there-additional-volumes.with-the-name.concourse-work-dir" . | not }}
155+ - name : concourse-work-dir
156+ emptyDir :
157+ {{- if .Values.worker.emptyDirSize }}
158+ sizeLimit : {{ .Values.worker.emptyDirSize | quote }}
159+ {{- end }}
160+ {{- end }}
150161{{- if .Values.worker.additionalVolumes }}
151162{{ toYaml .Values.worker.additionalVolumes | indent 8 }}
152163{{- end }}
Original file line number Diff line number Diff line change @@ -2683,7 +2683,8 @@ worker:
26832683 # # Ignored for Kind Deployment
26842684 podManagementPolicy : Parallel
26852685
2686- # # When persistance is disabled this value will be used to limit the emptyDir volume size
2686+ # # When persistance is disabled or using a Deployment, this value will be used
2687+ # # to limit the emptyDir volume size
26872688 # # Ref: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
26882689 # #
26892690 # # Example: 20Gi
You can’t perform that action at this time.
0 commit comments