{{- if .Values.backup.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
  name: {{ .Release.Name }}-backup
stringData:
  s3AccessKey: {{ required "s3AccessKey is not specified!" .Values.backup.s3AccessKey }}
  s3SecretKey: {{ required "s3SecretKey is not specified!" .Values.backup.s3SecretKey }}
  resticPassword: {{ required "resticPassword is not specified!" .Values.backup.resticPassword }}
{{- end }}
