diff --git a/charts/ipfs/1.0.0/templates/deployment.yaml b/charts/ipfs/1.0.0/templates/deployment.yaml index 2496d13269..78db80cf12 100644 --- a/charts/ipfs/1.0.0/templates/deployment.yaml +++ b/charts/ipfs/1.0.0/templates/deployment.yaml @@ -109,16 +109,16 @@ spec: {{- end}} volumes: - name: data - {{- if ne (include "configuredHostPathData" .) "" }} + {{- if .Values.emptyDirVolumes }} + emptyDir: {} + {{- else }} hostPath: path: {{ template "configuredHostPathData" . }} - {{- else }} - emptyDir: {} {{- end }} - name: staging - {{- if ne (include "configuredHostPathStaging" .) "" }} + {{- if .Values.emptyDirVolumes }} + emptyDir: {} + {{- else }} hostPath: path: {{ template "configuredHostPathStaging" . }} - {{- else }} - emptyDir: {} {{- end }}