185814b2 by Adam Heath

Try to fix direct url restore.

1 parent 0d6151e4
......@@ -56,18 +56,20 @@ spec:
env:
{{- if .Values.rclone.crypt.enabled }}
- name: RCLONE_CRYPT_REMOTE
{{- else }}
- name: RCLONE_S3_REMOTE
{{- end }}
{{- if .Values.restore.url }}
{{- if .Values.restore.url }}
value: ":{{ .Values.restore.url }}"
{{- else }}
{{- else }}
value: ":s3:$(S3_BUCKET)/$(S3_PREFIX)/last/"
{{- end }}
{{- end }}
{{- if .Values.rclone.crypt.enabled }}
args: ["copy", ":crypt:", "/restores/.work/"]
{{- else }}
args: ["-v", "copy", "$(RCLONE_S3_REMOTE)", "/restores/.work/"]
{{- if .Values.restore.url }}
args: ["-v", "copy", ":s3:{{ .Values.restore.url }}", "/restores/.work/"]
{{- else }}
args: ["-v", "copy", ":s3:$(S3_BUCKET)/$(S3_PREFIX)/last/", "/restores/.work/"]
{{- end }}
{{- end }}
{{- end }}
- name: link-latest
......