Compare commits

...

8 Commits

Author SHA1 Message Date
5cca3b2717 add barman
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 17s
2025-05-24 12:38:46 -05:00
a70137cfbd fix serername
All checks were successful
release-charts-postgres-cluster / release (push) Successful in 21s
2025-05-24 12:07:30 -05:00
dc4df55373 fix client mountg
All checks were successful
release-charts-cloudfbarman-cloudlared / release (push) Successful in 35s
2025-05-24 12:02:30 -05:00
a3f42e13ce fix client mount
All checks were successful
release-charts-cloudfbarman-cloudlared / release (push) Successful in 28s
2025-05-24 11:57:30 -05:00
a48262f115 upgrade chart
All checks were successful
release-charts-cloudfbarman-cloudlared / release (push) Successful in 16s
2025-05-24 11:52:07 -05:00
bd458a3a3d fix service account
All checks were successful
release-charts-cloudfbarman-cloudlared / release (push) Successful in 27s
2025-05-24 11:49:16 -05:00
3aa9113d24 fix service account
All checks were successful
release-charts-cloudfbarman-cloudlared / release (push) Successful in 19s
2025-05-24 11:45:45 -05:00
1fe8881dfb update values
All checks were successful
release-charts-cloudfbarman-cloudlared / release (push) Successful in 21s
2025-05-24 11:41:21 -05:00
12 changed files with 32 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: barman-cloud
version: 0.1.0
version: 0.2.5
description: Barman Cloud Plugin
keywords:
- barman-cloud

View File

@@ -1,6 +1,6 @@
# barman-cloud
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v.0.4.0](https://img.shields.io/badge/AppVersion-v.0.4.0-informational?style=flat-square)
![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![AppVersion: v.0.4.0](https://img.shields.io/badge/AppVersion-v.0.4.0-informational?style=flat-square)
Barman Cloud Plugin
@@ -25,11 +25,9 @@ Barman Cloud Plugin
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| existingSecretKey | string | `"cf-tunnel-token"` | Name of key that contains the token in the existingSecret |
| existingSecretName | string | `"cloudflared-secret"` | Name of existing secret that contains Cloudflare token |
| image | object | `{"pullPolicy":"IfNotPresent","repository":"ghcr.io/cloudnative-pg/plugin-barman-cloud","tag":"v0.4.0"}` | Default image |
| name | string | `"barman-cloud"` | Name override of release |
| resources | object | `{"requests":{"cpu":"10m","memory":"128Mi"}}` | Default resources |
| service | object | `{"listenPort":9090}` | Default service |
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

View File

@@ -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 }}

View File

@@ -12,7 +12,8 @@ controllers:
app: {{ .Values.name }}
replicas: 1
strategy: Recreate
serviceAccountName: plugin-barman-cloud
serviceAccount:
name: {{ .Release.Name }}-barman-cloud
pod:
securityContext:
runAsNonRoot: true
@@ -41,7 +42,6 @@ controllers:
secretKeyRef:
key: SIDECAR_IMAGE
name: plugin-barman-cloud-m76km67hd7
securityContext:
allowPrivilegeEscalation: false
capabilities:
@@ -53,8 +53,8 @@ controllers:
seccompProfile:
type: RuntimeDefault
serviceAccount:
plugin-barman-cloud:
enabled: {{ .Values.serviceAccount.enabled }}
barman-cloud:
enabled: true
service:
main:
controller: 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) }}

View File

@@ -13,5 +13,5 @@ roleRef:
name: leader-election-role
subjects:
- kind: ServiceAccount
name: plugin-barman-cloud
name: {{ .Release.Name }}-barman-cloud
namespace: {{ .Release.Namespace }}

View File

@@ -1,20 +1,12 @@
# -- Name override of release
name: barman-cloud
# -- Name of existing secret that contains Cloudflare token
existingSecretName: cloudflared-secret
# -- Name of key that contains the token in the existingSecret
existingSecretKey: cf-tunnel-token
# -- Default image
image:
repository: ghcr.io/cloudnative-pg/plugin-barman-cloud
tag: "v0.4.0"
pullPolicy: IfNotPresent
# -- Default resources
resources:
requests:
cpu: 10m
memory: 128Mi
# -- Default service
service:
listenPort: 9090

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: postgres-cluster
version: 6.3.2
version: 6.4.1
description: Cloudnative-pg Cluster
keywords:
- database

View File

@@ -1,6 +1,6 @@
# postgres-cluster
![Version: 6.3.2](https://img.shields.io/badge/Version-6.3.2-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square)
![Version: 6.4.1](https://img.shields.io/badge/Version-6.4.1-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square)
Cloudnative-pg Cluster

View File

@@ -131,6 +131,7 @@ externalClusters:
- name: {{ include "cluster.recoveryServerName" . }}
plugin:
name: barman-cloud.cloudnative-pg.io
enabled: true
parameters:
barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}"
serverName: {{ include "cluster.recoveryServerName" . }}

View File

@@ -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 }}

View File

@@ -24,14 +24,22 @@ 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
parameters:
barmanObjectName: "{{ include "cluster.name" . }}-{{ .Values.recovery.objectStore.name }}"
serverName: {{ include "cluster.recoveryServerName" . }}
{{ end }}
storage:
size: {{ .Values.cluster.storage.size }}

View File

@@ -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}}