Use emptydir volumes for nextcloud chart test
This commit is contained in:
parent
254ff0ab4d
commit
23892730f3
|
@ -78,17 +78,25 @@ Retrieve host path defined in volume
|
||||||
Retrieve backup postgresql host path defined in volume
|
Retrieve backup postgresql host path defined in volume
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "configuredBackupPostgresHostPath" -}}
|
{{- define "configuredBackupPostgresHostPath" -}}
|
||||||
|
{{- if .Values.emptyDirVolumes -}}
|
||||||
|
{{- printf "" -}}
|
||||||
|
{{- else -}}
|
||||||
{{- $volDict := dict "datasetName" $.Values.postgresBackupVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
|
{{- $volDict := dict "datasetName" $.Values.postgresBackupVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
|
||||||
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
|
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Retrieve postgresql data host path defined in volume
|
Retrieve postgresql data host path defined in volume
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "configuredPostgresHostPath" -}}
|
{{- define "configuredPostgresHostPath" -}}
|
||||||
|
{{- if .Values.emptyDirVolumes -}}
|
||||||
|
{{- printf "" -}}
|
||||||
|
{{- else -}}
|
||||||
{{- $volDict := dict "datasetName" $.Values.postgresDataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
|
{{- $volDict := dict "datasetName" $.Values.postgresDataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
|
||||||
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
|
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Selector labels
|
Selector labels
|
||||||
|
|
|
@ -23,3 +23,5 @@ postgresql:
|
||||||
|
|
||||||
service:
|
service:
|
||||||
nodePort: 31000
|
nodePort: 31000
|
||||||
|
|
||||||
|
emptyDirVolumes: true
|
||||||
|
|
Loading…
Reference in New Issue