From 23892730f30c584fac62ff35082527f7fec2171f Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Tue, 8 Dec 2020 02:13:26 +0500 Subject: [PATCH] Use emptydir volumes for nextcloud chart test --- test/nextcloud/2.3.2/templates/_helpers.tpl | 8 ++++++++ test/nextcloud/2.3.2/test_values.yaml | 2 ++ 2 files changed, 10 insertions(+) diff --git a/test/nextcloud/2.3.2/templates/_helpers.tpl b/test/nextcloud/2.3.2/templates/_helpers.tpl index 8a6ff9150ce..3c582e14d7b 100644 --- a/test/nextcloud/2.3.2/templates/_helpers.tpl +++ b/test/nextcloud/2.3.2/templates/_helpers.tpl @@ -78,17 +78,25 @@ Retrieve host path defined in volume Retrieve backup postgresql host path defined in volume */}} {{- define "configuredBackupPostgresHostPath" -}} +{{- if .Values.emptyDirVolumes -}} +{{- printf "" -}} +{{- else -}} {{- $volDict := dict "datasetName" $.Values.postgresBackupVolume.datasetName "ixVolumes" $.Values.ixVolumes -}} {{- include "retrieveHostPathFromiXVolume" $volDict -}} {{- end -}} +{{- end -}} {{/* Retrieve postgresql data host path defined in volume */}} {{- define "configuredPostgresHostPath" -}} +{{- if .Values.emptyDirVolumes -}} +{{- printf "" -}} +{{- else -}} {{- $volDict := dict "datasetName" $.Values.postgresDataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}} {{- include "retrieveHostPathFromiXVolume" $volDict -}} {{- end -}} +{{- end -}} {{/* Selector labels diff --git a/test/nextcloud/2.3.2/test_values.yaml b/test/nextcloud/2.3.2/test_values.yaml index f58524c7a73..d087f4c6f7c 100644 --- a/test/nextcloud/2.3.2/test_values.yaml +++ b/test/nextcloud/2.3.2/test_values.yaml @@ -23,3 +23,5 @@ postgresql: service: nodePort: 31000 + +emptyDirVolumes: true