diff --git a/templates/job-assets-copy.yaml b/templates/job-assets-copy.yaml index 17e52de..f4ec87f 100644 --- a/templates/job-assets-copy.yaml +++ b/templates/job-assets-copy.yaml @@ -60,6 +60,9 @@ spec: secretKeyRef: name: {{ required "Please specify a secret with S3 credentials for S3 asset uploads" .Values.mastodon.hooks.s3Upload.secretRef.name }} key: {{ .Values.mastodon.hooks.s3Upload.secretRef.keys.secretAccessKey }} + {{- with .Values.mastodon.hooks.s3Upload.rclone.env }} + {{- toYaml . | nindent 12 }} + {{- end }} command: - rclone args: diff --git a/values.yaml b/values.yaml index c18df07..e6ab46d 100644 --- a/values.yaml +++ b/values.yaml @@ -28,7 +28,7 @@ mastodon: enabled: true assetsPrecompile: enabled: true - # Upload website assets to S3 before deploying. + # Upload website assets to S3 before deploying using rclone. # Whenever there is an update to Mastodon, sometimes there are assets files # that are renamed. As the pods are getting redeployed, and old/new pods are # present simultaneously, there is a chance that old asset files are @@ -46,6 +46,9 @@ mastodon: keys: accesKeyId: acces-key-id secretAccessKey: secret-access-key + rclone: + # Any additional environment variables to pass to rclone. + env: {} # Custom labels to add to kubernetes resources #labels: cron: