# {{- if not .Values.oneTimeBackup }} apiVersion: k8up.io/v1 kind: Schedule metadata: name: "{{ .Release.Name }}-schedule" spec: backend: repoPasswordSecretRef: name: "{{ .Release.Name }}-repopassword" key: password s3: endpoint: "{{ .Values.endpoint }}" bucket: "{{ .Values.bucket }}" accessKeyIDSecretRef: name: "{{ .Release.Name }}-credentials" key: id secretAccessKeySecretRef: name: "{{ .Release.Name }}-credentials" key: key backup: schedule: '@hourly-random' failedJobsHistoryLimit: 2 successfulJobsHistoryLimit: 2 # optional #promURL: https://prometheus-io-instance:8443 check: schedule: '@daily-random' # optional #promURL: https://prometheus-io-instance:8443 prune: schedule: '@weekly-random' retention: keepLast: 5 keep Daily: 14 # {{- end }}