Files
chart/charts/nextcloud/2.0.21/templates/_postgres.tpl
2025-01-19 07:19:28 +00:00

13 lines
650 B
Smarty

{{- define "postgres.workload" -}}
{{- $backupSecretName := "postgres-creds" -}}
{{- if eq (include "nextcloud.is-migration" $) "true" }}
{{- $backupSecretName = "postgres-backup-creds" -}}
{{- end }}
workload:
{{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds"
"backupSecretName" $backupSecretName
"resources" .Values.resources
"imageSelector" "ncPostgresImage"
"ixChartContext" .Values.ixChartContext) | nindent 2 }}
{{- end -}}