Skip to content

Commit

Permalink
Support encrypted Rclone configs (#5)
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
philipp94831 authored Jul 8, 2024
1 parent 49c5d7f commit b12b059
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/rclone-copy/templates/rclone-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ spec:

resources:
{{ toYaml .Values.resources | indent 14 }}

{{- if .Values.configPassword }}
env:
- name: RCLONE_CONFIG_PASS
valueFrom:
secretKeyRef:
name: rclone-config-{{ .Release.Name }}
key: password
{{- end }}

restartPolicy: {{ .Values.restartPolicy }}
volumes:
Expand Down
9 changes: 9 additions & 0 deletions charts/rclone-copy/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- if .Values.configPassword }}
apiVersion: v1
kind: Secret
metadata:
name: rclone-config-{{ .Release.Name }}
type: Opaque
data:
password: {{ .Values.configPassword | b64enc }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/rclone-copy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ backoffLimit: 6
podAnnotations: {}

podLabels: {}

# configPassword: password

0 comments on commit b12b059

Please sign in to comment.