Compare commits
3 Commits
postgres-c
...
postgres-c
Author | SHA1 | Date | |
---|---|---|---|
74c2bca3ae | |||
e1a2ee71f8 | |||
37478087d4 |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-cluster
|
name: postgres-cluster
|
||||||
version: 6.0.2
|
version: 6.0.5
|
||||||
description: Cloudnative-pg Cluster
|
description: Cloudnative-pg Cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# postgres-cluster
|
# postgres-cluster
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Cloudnative-pg Cluster
|
Cloudnative-pg Cluster
|
||||||
|
|
||||||
|
@@ -5,24 +5,24 @@
|
|||||||
apiVersion: barmancloud.cnpg.io/v1
|
apiVersion: barmancloud.cnpg.io/v1
|
||||||
kind: ObjectStore
|
kind: ObjectStore
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ include "cluster.name" . }}-{{ $context.name }}-backup"
|
name: "{{ include "cluster.name" $context }}-{{ $context.name }}-backup"
|
||||||
namespace: {{ include "cluster.namespace" . }}
|
namespace: {{ include "cluster.namespace" $context }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "cluster.labels" . | nindent 4 }}
|
{{- include "cluster.labels" $context | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
retentionPolicy: {{ $context.retentionPolicy }}
|
retentionPolicy: {{ $context.retentionPolicy }}
|
||||||
configuration:
|
configuration:
|
||||||
destinationPath: {{ $context.destinationPath }}
|
destinationPath: {{ $context.destinationPath }}
|
||||||
endpointURL: {{ $context.endpointURL }}
|
endpointURL: {{ $context.endpointURL }}
|
||||||
{{- if $context.endpointCA.name }}
|
{{- if not (empty $context.endpointCA.name) }}
|
||||||
endpointCA:
|
endpointCA:
|
||||||
name: {{ $context.endpointCA.name }}
|
name: {{ $context.endpointCA.name }}
|
||||||
key: {{ $context.endpointCA.key }}
|
key: {{ $context.endpointCA.key }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $context.clusterName }}
|
{{- if not (empty $context.clusterName) }}
|
||||||
serverName: "{{ $context.clusterName }}-backup-{{ $context.index }}"
|
serverName: "{{ $context.clusterName }}-backup-{{ $context.index }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
serverName: "{{ include "cluster.name" . }}-backup-{{ $context.index }}"
|
serverName: "{{ include "cluster.name" $context }}-backup-{{ $context.index }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
wal:
|
wal:
|
||||||
compression: {{ $context.wal.compression }}
|
compression: {{ $context.wal.compression }}
|
||||||
@@ -38,17 +38,17 @@ spec:
|
|||||||
jobs: {{ $context.data.jobs }}
|
jobs: {{ $context.data.jobs }}
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
accessKeyId:
|
accessKeyId:
|
||||||
{{- if $context.endpointCredentials }}
|
{{- if not (empty $context.endpointCredentials) }}
|
||||||
name: {{ $context.endpointCredentials }}
|
name: {{ $context.endpointCredentials }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
name: {{- printf "%s-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-" -}}
|
name: {{- printf "%s-backup-secret" (include "cluster.name" $context) | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
key: ACCESS_KEY_ID
|
key: ACCESS_KEY_ID
|
||||||
secretAccessKey:
|
secretAccessKey:
|
||||||
{{- if $context.endpointCredentials }}
|
{{- if not (empty $context.endpointCredentials) }}
|
||||||
name: {{ $context.endpointCredentials }}
|
name: {{ $context.endpointCredentials }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
name: {{- printf "%s-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-" -}}
|
name: {{- printf "%s-backup-secret" (include "cluster.name" $context) | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
key: ACCESS_SECRET_KEY
|
key: ACCESS_SECRET_KEY
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -67,7 +67,7 @@ spec:
|
|||||||
configuration:
|
configuration:
|
||||||
destinationPath: {{ .Values.recovery.objectStore.destinationPath }}
|
destinationPath: {{ .Values.recovery.objectStore.destinationPath }}
|
||||||
endpointURL: {{ .Values.recovery.objectStore.endpointURL }}
|
endpointURL: {{ .Values.recovery.objectStore.endpointURL }}
|
||||||
{{- if .Values.recovery.objectStore.endpointCA.name }}
|
{{- if not (empty .Values.recovery.objectStore.endpointCA.name) }}
|
||||||
endpointCA:
|
endpointCA:
|
||||||
name: {{ .Values.recovery.objectStore.endpointCA.name }}
|
name: {{ .Values.recovery.objectStore.endpointCA.name }}
|
||||||
key: {{ .Values.recovery.objectStore.endpointCA.key }}
|
key: {{ .Values.recovery.objectStore.endpointCA.key }}
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: ScheduledBackup
|
kind: ScheduledBackup
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ include "cluster.name" . }}-{{ $context.name }}-scheduled-backup"
|
name: "{{ include "cluster.name" $context }}-{{ $context.name }}-scheduled-backup"
|
||||||
namespace: {{ include "cluster.namespace" . }}
|
namespace: {{ include "cluster.namespace" $context }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "cluster.labels" $context | nindent 4 }}
|
{{- include "cluster.labels" $context | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
@@ -15,11 +15,11 @@ spec:
|
|||||||
schedule: {{ $context.schedule | quote }}
|
schedule: {{ $context.schedule | quote }}
|
||||||
backupOwnerReference: {{ $context.backupOwnerReference }}
|
backupOwnerReference: {{ $context.backupOwnerReference }}
|
||||||
cluster:
|
cluster:
|
||||||
name: {{ include "cluster.name" . }}-cluster
|
name: {{ include "cluster.name" $context }}-cluster
|
||||||
method: plugin
|
method: plugin
|
||||||
pluginConfiguration:
|
pluginConfiguration:
|
||||||
name: {{ $context.plugin }}
|
name: {{ $context.plugin }}
|
||||||
parameters:
|
parameters:
|
||||||
barmanObjectName: "{{ include "cluster.name" . }}-{{ $context.backupName }}-backup"
|
barmanObjectName: "{{ include "cluster.name" $context }}-{{ $context.backupName }}-backup"
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user