From 9e427a993c2116e8b19d336a71850972e86eef5e Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:08:54 +0200 Subject: [PATCH] allow overriding backupSecretName (#2057) --- library/common/Chart.yaml | 2 +- library/common/templates/app_functions/_postgres.tpl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library/common/Chart.yaml b/library/common/Chart.yaml index 6766a5267b..6a6db11b87 100644 --- a/library/common/Chart.yaml +++ b/library/common/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: common description: A library chart for iX Official Catalog type: library -version: 1.2.8 +version: 1.2.9 appVersion: v1 annotations: title: Common Library Chart diff --git a/library/common/templates/app_functions/_postgres.tpl b/library/common/templates/app_functions/_postgres.tpl index 571447512e..298c15830f 100644 --- a/library/common/templates/app_functions/_postgres.tpl +++ b/library/common/templates/app_functions/_postgres.tpl @@ -15,6 +15,7 @@ backupChownMode (optional): Whether to chown the backup directory or {{- $name := .name | default "postgres" -}} {{- $imageSelector := .imageSelector | default "postgresImage" -}} {{- $secretName := (required "Postgres - Secret Name is required" .secretName) -}} + {{- $backupSecretName := .backupSecretName | default $secretName -}} {{- $backupPath := .backupPath | default "/postgres_backup" -}} {{- $backupChownMode := .backupChownMode | default "check" -}} {{- $ixChartContext := .ixChartContext -}} @@ -119,7 +120,7 @@ postgresbackup: memory: 2Gi envFrom: - secretRef: - name: {{ $secretName }} + name: {{ $backupSecretName }} command: - sh - -c