From 9a66aa81cf9f3a2be527f4e3a300e4c978c3a38a Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Thu, 19 Dec 2024 09:28:41 +0100 Subject: [PATCH] Add flag to control config storage as secret --- charts/rclone-copy/templates/rclone-cron.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/rclone-copy/templates/rclone-cron.yaml b/charts/rclone-copy/templates/rclone-cron.yaml index 4de860c..306d72b 100644 --- a/charts/rclone-copy/templates/rclone-cron.yaml +++ b/charts/rclone-copy/templates/rclone-cron.yaml @@ -66,7 +66,7 @@ spec: # copy as workaround for rclone.conf read only (see https://github.com/rclone/rclone/issues/3655) - >- {{- range $key, $value := .Values.passwordSecrets }} - {{ printf "%s=$(rclone obscure UNOBSCURED_%s) &&" $key $key }} + {{ printf "export %s=$(rclone obscure $UNOBSCURED_%s) &&" $key $key }} {{- end }} cp /root/.config/rclone/rclone_ro.conf /root/.config/rclone/rclone.conf && rclone {{ .Values.command }} -v {{ .Values.arguments | join " " }} --include-from /root/include-pattern.conf "{{ include "rclone-copy.getSourceOrUrl" . }}" "{{ .Values.sync.dest.name }}:{{ .Values.sync.dest.path }}"