Compare commits
7 Commits
barman-clo
...
postgres-c
Author | SHA1 | Date | |
---|---|---|---|
78024a129f | |||
5cca3b2717 | |||
a70137cfbd | |||
dc4df55373 | |||
a3f42e13ce | |||
a48262f115 | |||
bd458a3a3d |
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: barman-cloud
|
||||
version: 0.2.1
|
||||
version: 0.2.5
|
||||
description: Barman Cloud Plugin
|
||||
keywords:
|
||||
- barman-cloud
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# barman-cloud
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
Barman Cloud Plugin
|
||||
|
||||
|
@@ -12,7 +12,7 @@ roleRef:
|
||||
name: metrics-auth-role
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: plugin-barman-cloud
|
||||
name: {{ .Release.Name }}-barman-cloud
|
||||
namespace: {{ .Release.Namespace }}
|
||||
|
||||
---
|
||||
@@ -30,5 +30,5 @@ roleRef:
|
||||
name: plugin-barman-cloud
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: plugin-barman-cloud
|
||||
name: {{ .Release.Name }}-barman-cloud
|
||||
namespace: {{ .Release.Namespace }}
|
||||
|
@@ -13,7 +13,7 @@ controllers:
|
||||
replicas: 1
|
||||
strategy: Recreate
|
||||
serviceAccount:
|
||||
name: plugin-barman-cloud
|
||||
name: {{ .Release.Name }}-barman-cloud
|
||||
pod:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
@@ -53,7 +53,7 @@ controllers:
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
serviceAccount:
|
||||
plugin-barman-cloud:
|
||||
barman-cloud:
|
||||
enabled: true
|
||||
service:
|
||||
main:
|
||||
@@ -81,11 +81,16 @@ persistence:
|
||||
- path: /server
|
||||
readOnly: true
|
||||
mountPropagation: None
|
||||
subPath: server
|
||||
client-tls:
|
||||
enabled: true
|
||||
type: secret
|
||||
name: {{ .Values.name }}-client-tls
|
||||
advancedMounts:
|
||||
main:
|
||||
main:
|
||||
- path: /client
|
||||
readOnly: true
|
||||
mountPropagation: None
|
||||
subPath: client
|
||||
|
||||
{{ end }}
|
||||
{{ $_ := mergeOverwrite .Values (include "barman-cloud.hardcodedValues" . | fromYaml) }}
|
||||
|
@@ -13,5 +13,5 @@ roleRef:
|
||||
name: leader-election-role
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: plugin-barman-cloud
|
||||
name: {{ .Release.Name }}-barman-cloud
|
||||
namespace: {{ .Release.Namespace }}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: postgres-cluster
|
||||
version: 6.3.2
|
||||
version: 6.4.2
|
||||
description: Cloudnative-pg Cluster
|
||||
keywords:
|
||||
- database
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# postgres-cluster
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
Cloudnative-pg Cluster
|
||||
|
||||
|
@@ -131,6 +131,8 @@ externalClusters:
|
||||
- name: {{ include "cluster.recoveryServerName" . }}
|
||||
plugin:
|
||||
name: barman-cloud.cloudnative-pg.io
|
||||
enabled: true
|
||||
isWALArchiver: false
|
||||
parameters:
|
||||
barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}"
|
||||
serverName: {{ include "cluster.recoveryServerName" . }}
|
||||
|
@@ -80,7 +80,7 @@ Generate recovery server name
|
||||
{{- if .Values.recovery.recoveryServerName -}}
|
||||
{{- .Values.recovery.recoveryServerName -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-backup-%s" (include "cluster.name" .) (toString .Values.recovery.recoveryIndex) | trunc 63 | trimSuffix "-" -}}
|
||||
{{- printf "%s-backup-%s" (include "cluster.name" .) (toString .Values.recovery.objectStore.index) | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
@@ -24,14 +24,23 @@ spec:
|
||||
{{ end }}
|
||||
{{- range $objectStore := .Values.backup.objectStore }}
|
||||
- name: barman-cloud.cloudnative-pg.io
|
||||
enabled: true
|
||||
isWALArchiver: {{ $objectStore.isWALArchiver | default true }}
|
||||
parameters:
|
||||
barmanObjectName: "{{ include "cluster.name" $ }}-{{ $objectStore.name }}-backup"
|
||||
{{- if $objectStore.clusterName }}
|
||||
serverName: "{{ $objectStore.clusterName }}-backup-{{ $objectStore.index }}"
|
||||
{{- else }}
|
||||
serverName: "{{ include "cluster.name" $ }}-backup-{{ $objectStore.index }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ if eq .Values.recovery.method "objectStore" }}
|
||||
- name: barman-cloud.cloudnative-pg.io
|
||||
enabled: true
|
||||
isWALArchiver: false
|
||||
parameters:
|
||||
barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}"
|
||||
serverName: {{ include "cluster.recoveryServerName" . }}
|
||||
{{ end }}
|
||||
storage:
|
||||
size: {{ .Values.cluster.storage.size }}
|
||||
|
@@ -19,11 +19,6 @@ spec:
|
||||
name: {{ .endpointCA.name }}
|
||||
key: {{ .endpointCA.key }}
|
||||
{{- end }}
|
||||
{{- if .clusterName }}
|
||||
serverName: "{{ .clusterName }}-backup-{{ .index }}"
|
||||
{{- else }}
|
||||
serverName: "{{ include "cluster.name" $context }}-backup-{{ .index }}"
|
||||
{{- end }}
|
||||
{{- if .wal }}
|
||||
wal:
|
||||
compression: {{ .wal.compression | default "snappy" }}
|
||||
@@ -76,7 +71,6 @@ spec:
|
||||
name: {{ .Values.recovery.objectStore.endpointCA.name }}
|
||||
key: {{ .Values.recovery.objectStore.endpointCA.key }}
|
||||
{{- end }}
|
||||
serverName: {{ include "cluster.recoveryServerName" . }}
|
||||
wal:
|
||||
compression: {{ .Values.recovery.objectStore.wal.compression }}
|
||||
{{- with .Values.recovery.objectStore.wal.encryption}}
|
||||
|
Reference in New Issue
Block a user