rebase this chart on cnpg provided chart
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 18s
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 18s
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{{ if .Values.backup.enabled }}
|
||||
{{ $context := . -}}
|
||||
{{ range .Values.backup.scheduledBackups -}}
|
||||
---
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: ScheduledBackup
|
||||
metadata:
|
||||
name: {{ include "cluster.name" . }}-scheduled-backup
|
||||
namespace: {{ .Release.Namespace }}
|
||||
name: {{ include "cluster.name" $context }}-{{ .name }}-scheduled-backup
|
||||
namespace: {{ include "cluster.namespace" $ }}
|
||||
labels:
|
||||
{{- include "cluster.labels" . | nindent 4 }}
|
||||
{{- with .Values.cluster.additionalLabels }}
|
||||
@@ -11,8 +14,9 @@ metadata:
|
||||
{{- end }}
|
||||
spec:
|
||||
immediate: true
|
||||
schedule: {{ .Values.backup.schedule }}
|
||||
backupOwnerReference: self
|
||||
schedule: {{ .schedule | quote }}
|
||||
backupOwnerReference: {{ .backupOwnerReference }}
|
||||
cluster:
|
||||
name: {{ include "cluster.name" . }}-cluster
|
||||
name: {{ include "cluster.name" $context }}
|
||||
{{ end -}}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user