瀏覽代碼

Fix deployment test

Waqar Ahmed 5 年之前
父節點
當前提交
5f1283b4c4
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      test/nextcloud/2.3.2/templates/postgres-deployment.yaml

+ 8 - 0
test/nextcloud/2.3.2/templates/postgres-deployment.yaml

@@ -49,8 +49,16 @@ spec:
           protocol: TCP
       volumes:
       - name: postgres-data
+        {{- if ne (include "configuredPostgresHostPath" .) "" }}
         hostPath:
           path: {{ template "configuredPostgresHostPath" . }}
+        {{- else }}
+        emptyDir: {}
+        {{- end }}
       - name: postgres-backup
+        {{- if ne (include "configuredBackupPostgresHostPath" .) "" }}
         hostPath:
           path: {{ template "configuredBackupPostgresHostPath" . }}
+        {{- else }}
+        emptyDir: {}
+        {{- end }}