TrueChartsCatalogClone/stable/kopia/11.10.10/templates/_secrets.tpl

12 lines
345 B
Smarty

{{/* Define the secret */}}
{{- define "kopia.secrets" -}}
{{- $secretName := (printf "%s-kopia-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) -}}
{{- $kopia := .Values.kopia -}}
enabled: true
data:
USER: {{ $kopia.user | default "user" | quote }}
KOPIA_PASSWORD: {{ $kopia.password | default "secret" | quote }}
{{- end }}