diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 47ee825..4bfd07b 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 6.8.2 +version: 6.9.0 description: Cloudnative-pg Cluster keywords: - database @@ -11,4 +11,4 @@ sources: maintainers: - name: alexlebens icon: https://avatars.githubusercontent.com/u/100373852?s=48&v=4 -appVersion: v1.26.0 +appVersion: v1.27.0 diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index db1ebcb..be13271 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,6 +1,6 @@ # postgres-cluster -![Version: 6.8.2](https://img.shields.io/badge/Version-6.8.2-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) +![Version: 6.9.0](https://img.shields.io/badge/Version-6.9.0-informational?style=flat-square) ![AppVersion: v1.27.0](https://img.shields.io/badge/AppVersion-v1.27.0-informational?style=flat-square) Cloudnative-pg Cluster diff --git a/charts/postgres-cluster/templates/_helpers.tpl b/charts/postgres-cluster/templates/_helpers.tpl index c1151d9..b5fa3d2 100644 --- a/charts/postgres-cluster/templates/_helpers.tpl +++ b/charts/postgres-cluster/templates/_helpers.tpl @@ -83,17 +83,3 @@ Generate recovery server name {{- printf "%s-backup-%s" (include "cluster.name" .) (toString .Values.recovery.objectStore.index) | trunc 63 | trimSuffix "-" -}} {{- end }} {{- end }} - -{{/* -Generate name for recovery object store credentials -*/}} -{{- define "cluster.recoveryCredentials" -}} - {{- printf "%s-cluster-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-" -}} -{{- end }} - -{{/* -Generate name for backup object store credentials -*/}} -{{- define "cluster.backupCredentials" -}} - {{- printf "%s-cluster-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-" -}} -{{- end }} diff --git a/charts/postgres-cluster/templates/object-store.yaml b/charts/postgres-cluster/templates/object-store.yaml index 829741e..2bbf5e7 100644 --- a/charts/postgres-cluster/templates/object-store.yaml +++ b/charts/postgres-cluster/templates/object-store.yaml @@ -37,10 +37,10 @@ spec: {{- end }} s3Credentials: accessKeyId: - name: {{ .endpointCredentials }} + name: {{ .endpointCredentials | default (printf "%s-cluster-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-") }} key: ACCESS_KEY_ID secretAccessKey: - name: {{ .endpointCredentials }} + name: {{ .endpointCredentials | default (printf "%s-cluster-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-") }} key: ACCESS_SECRET_KEY {{ end -}} {{ end }} @@ -77,9 +77,9 @@ spec: jobs: {{ .Values.recovery.objectStore.data.jobs }} s3Credentials: accessKeyId: - name: {{ .Values.recovery.objectStore.endpointCredentials }} + name: {{ .Values.recovery.objectStore.endpointCredentials | default (printf "%s-cluster-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-") }} key: ACCESS_KEY_ID secretAccessKey: - name: {{ .Values.recovery.objectStore.endpointCredentials }} + name: {{ .Values.recovery.objectStore.endpointCredentials | default (printf "%s-cluster-backup-secret" (include "cluster.name" .) | trunc 63 | trimSuffix "-") }} key: ACCESS_SECRET_KEY {{ end }}