Use emptydir volumes for nextcloud chart test

This commit is contained in:
Waqar Ahmed 2020-12-08 02:13:26 +05:00
parent 254ff0ab4d
commit 23892730f3
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -23,3 +23,5 @@ postgresql:
service:
nodePort: 31000
emptyDirVolumes: true