Kris Moore преди 4 години
родител
ревизия
da3cecaa3f
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      charts/ipfs/1.0.0/templates/deployment.yaml

+ 6 - 6
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 }}