allow overriding backupSecretName (#2057)

This commit is contained in:
Stavros Kois
2024-01-19 14:08:54 +02:00
committed by GitHub
parent 8af02e63b7
commit 9e427a993c
2 changed files with 3 additions and 2 deletions

View File

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

View File

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