KubeZero/charts/kubezero-addons/templates/cluster-backup/secret.yaml

12 lines
374 B
YAML
Raw Permalink Normal View History

2022-08-24 15:13:39 +00:00
{{- if and .Values.clusterBackup.enabled .Values.clusterBackup.repository .Values.clusterBackup.password }}
2021-12-01 12:35:18 +00:00
apiVersion: v1
kind: Secret
metadata:
name: kubezero-backup-restic
namespace: kube-system
type: Opaque
data:
repository: {{ default "" .Values.clusterBackup.repository | b64enc }}
password: {{ default "" .Values.clusterBackup.password | b64enc }}
{{- end }}