mirror of
https://github.com/truenas/charts.git
synced 2026-04-26 19:42:14 +08:00
29 lines
811 B
Smarty
29 lines
811 B
Smarty
{{/*
|
|
Get Nextloud Postgres Database Name
|
|
*/}}
|
|
{{- define "postgres.DatabaseName" -}}
|
|
{{- print "nextcloud" -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Postgres Selector labels
|
|
*/}}
|
|
{{- define "nextcloud.postgres.selectorLabels" -}}
|
|
app.kubernetes.io/name: {{ include "nextcloud.name" . }}-postgres
|
|
app.kubernetes.io/instance: {{ .Release.Name }}-postgres
|
|
{{- end }}
|
|
|
|
{{- define "postgres.imageName" -}}
|
|
{{- print "postgres:13.1" -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Retrieve postgres backup name
|
|
This will return a unique name based on revision and chart numbers specified.
|
|
*/}}
|
|
{{- define "postgres.backupName" -}}
|
|
{{- $upgradeDict := .Values.ixChartContext.upgradeMetadata -}}
|
|
{{- printf "postgres-backup-from-%s-to-%s-revision-%d" $upgradeDict.oldChartVersion $upgradeDict.newChartVersion (int64 $upgradeDict.preUpgradeRevision) -}}
|
|
{{- end }}
|
|
|