From 37478087d4cea9bf608f26b2bce7e08bdba30f2a Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 24 May 2025 01:01:06 -0500 Subject: [PATCH] fix name helper --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/README.md | 2 +- charts/postgres-cluster/templates/scheduled-backup.yaml | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index b4ed06c..21a81e5 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 6.0.2 +version: 6.0.3 description: Cloudnative-pg Cluster keywords: - database diff --git a/charts/postgres-cluster/README.md b/charts/postgres-cluster/README.md index 0625372..0dee490 100644 --- a/charts/postgres-cluster/README.md +++ b/charts/postgres-cluster/README.md @@ -1,6 +1,6 @@ # postgres-cluster -![Version: 6.0.2](https://img.shields.io/badge/Version-6.0.2-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) +![Version: 6.0.3](https://img.shields.io/badge/Version-6.0.3-informational?style=flat-square) ![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat-square) Cloudnative-pg Cluster diff --git a/charts/postgres-cluster/templates/scheduled-backup.yaml b/charts/postgres-cluster/templates/scheduled-backup.yaml index 2257091..815433b 100644 --- a/charts/postgres-cluster/templates/scheduled-backup.yaml +++ b/charts/postgres-cluster/templates/scheduled-backup.yaml @@ -5,8 +5,8 @@ apiVersion: postgresql.cnpg.io/v1 kind: ScheduledBackup metadata: - name: "{{ include "cluster.name" . }}-{{ $context.name }}-scheduled-backup" - namespace: {{ include "cluster.namespace" . }} + name: "{{ include "cluster.name" $context }}-{{ $context.name }}-scheduled-backup" + namespace: {{ include "cluster.namespace" $context }} labels: {{- include "cluster.labels" $context | nindent 4 }} spec: @@ -15,11 +15,11 @@ spec: schedule: {{ $context.schedule | quote }} backupOwnerReference: {{ $context.backupOwnerReference }} cluster: - name: {{ include "cluster.name" . }}-cluster + name: {{ include "cluster.name" $context }}-cluster method: plugin pluginConfiguration: name: {{ $context.plugin }} parameters: - barmanObjectName: "{{ include "cluster.name" . }}-{{ $context.backupName }}-backup" + barmanObjectName: "{{ include "cluster.name" $context }}-{{ $context.backupName }}-backup" {{ end -}} {{ end }}