Skip to content

Commit

Permalink
allow overriding backupSecretName
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Jan 18, 2024
1 parent 0f2b5c8 commit 73520da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion library/common/templates/app_functions/_postgres.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down Expand Up @@ -119,7 +120,7 @@ postgresbackup:
memory: 2Gi
envFrom:
- secretRef:
name: {{ $secretName }}
name: {{ $backupSecretName }}
command:
- sh
- -c
Expand Down

0 comments on commit 73520da

Please sign in to comment.