Skip to content

Commit

Permalink
Add flag to control config storage as secret
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Dec 18, 2024
1 parent e3ffa32 commit fc3b1fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion charts/rclone-copy/templates/rclone-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ spec:
{{- end }}
{{- if .Values.passwordVariable }}
- name: RCLONE_PASSWORD_COMMAND
value: {{ printf "echo $%s" .Values.passwordVariable | quote }}
value: "echo $PASSWORD"
- name: PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.passwordVariable.name }}
key: "{{ .Values.passwordVariable.key }}"
{{- end }}
{{- end }}

Expand Down
4 changes: 3 additions & 1 deletion charts/rclone-copy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,6 @@ secretRefs: {}

secretConfig: false

# passwordVariable: MY_SECRET
passwordVariable: {}
# name: secretName
# key: secretKey

0 comments on commit fc3b1fa

Please sign in to comment.