From 5f1283b4c4205fbc00dce0f9409fc64aac73f2f8 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Mon, 7 Dec 2020 23:24:05 +0500 Subject: [PATCH] Fix deployment test --- test/nextcloud/2.3.2/templates/postgres-deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/nextcloud/2.3.2/templates/postgres-deployment.yaml b/test/nextcloud/2.3.2/templates/postgres-deployment.yaml index 2214fc340b..da39a2cd76 100644 --- a/test/nextcloud/2.3.2/templates/postgres-deployment.yaml +++ b/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 }}