{{- if and .Values.clusterBackup.enabled .Values.clusterBackup.repository .Values.clusterBackup.password }}
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 }}
