Skip to content

Commit 4ff509d

Browse files
authored
Allow emptyDir type volume mounts (#6803)
1 parent efc6edf commit 4ff509d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/helm-chart/templates/deployment.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,12 @@ spec:
177177
{{- if .existingClaim }}
178178
persistentVolumeClaim:
179179
claimName: {{ .existingClaim }}
180-
{{- else }}
180+
{{- else if .hostPath }}
181181
hostPath:
182182
path: {{ .hostPath }}
183183
type: Directory
184+
{{- else }}
185+
emptyDir:
186+
{{- toYaml .emptyDir | nindent 10 }}
184187
{{- end }}
185188
{{- end }}

ci/helm-chart/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ extraVolumeMounts: []
190190
# readOnly: true
191191
# existingClaim: volume-claim
192192
# hostPath: ""
193+
# emptyDir: {}
193194

194195
extraConfigmapMounts: []
195196
# - name: certs-configmap

0 commit comments

Comments
 (0)