fix(cnpg): Cleanup generation
This commit is contained in:
@@ -56,8 +56,8 @@ spec:
|
|||||||
- ALTER USER app WITH SUPERUSER;
|
- ALTER USER app WITH SUPERUSER;
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if and .Values.cluster.backup.enabled .Values.cluster.enabled -}}
|
||||||
---
|
---
|
||||||
{{- if .Values.cluster.backup.enabled -}}
|
|
||||||
apiVersion: barmancloud.cnpg.io/v1
|
apiVersion: barmancloud.cnpg.io/v1
|
||||||
kind: ObjectStore
|
kind: ObjectStore
|
||||||
metadata:
|
metadata:
|
||||||
@@ -67,7 +67,6 @@ spec:
|
|||||||
retentionPolicy: {{ .Values.cluster.backup.backupRetention | default "60d" }}
|
retentionPolicy: {{ .Values.cluster.backup.backupRetention | default "60d" }}
|
||||||
configuration:
|
configuration:
|
||||||
destinationPath: {{ .Values.cluster.destinationPath | default ""}}
|
destinationPath: {{ .Values.cluster.destinationPath | default ""}}
|
||||||
serverName: {{ include "Atlantis.fullname" . }}-db
|
|
||||||
endpointURL: http://10.255.241.30:30080
|
endpointURL: http://10.255.241.30:30080
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
accessKeyId:
|
accessKeyId:
|
||||||
@@ -78,13 +77,12 @@ spec:
|
|||||||
key: access_secret
|
key: access_secret
|
||||||
wal:
|
wal:
|
||||||
compression: snappy
|
compression: snappy
|
||||||
{{- end}}
|
|
||||||
---
|
---
|
||||||
{{- if and .Values.cluster.backup.enabled .Values.cluster.enabled -}}
|
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: ScheduledBackup
|
kind: ScheduledBackup
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "Atlantis.fullname" . }}-db
|
name: {{ include "Atlantis.fullname" . }}-db
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 0 1 * * *"
|
schedule: "0 0 1 * * *"
|
||||||
backupOwnerReference: self
|
backupOwnerReference: self
|
||||||
@@ -98,7 +96,8 @@ spec:
|
|||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: PodMonitor
|
kind: PodMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "Atlantis.fullname" . }}-db-monitor
|
name: {{ include "Atlantis.fullname" . }}-db-monitor
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
Reference in New Issue
Block a user