mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
allow overriding backupSecretName (#2057)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user