From 3367bdf27ab0655a703d182fb966426021e80f7e Mon Sep 17 00:00:00 2001 From: "T. Hinrichsmeyer" Date: Fri, 5 May 2023 12:44:22 +0200 Subject: [PATCH] Add s3.mastodon.multipart_threshold config option When uploading data to S3, if the number of bytes to send exceedes multipart_threshold then a multi part session is automatically started and the data is sent up in chunks. --- templates/configmap-env.yaml | 3 +++ values.yaml | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/configmap-env.yaml b/templates/configmap-env.yaml index f2d989e..a4d4170 100644 --- a/templates/configmap-env.yaml +++ b/templates/configmap-env.yaml @@ -84,6 +84,9 @@ data: {{- with .Values.mastodon.s3.alias_host }} S3_ALIAS_HOST: {{ . }} {{- end }} + {{- with .Values.mastodon.s3.multipart_threshold }} + S3_MULTIPART_THRESHOLD: "{{ . }}" + {{- end }} {{- end }} {{- with .Values.mastodon.smtp.auth_method }} SMTP_AUTH_METHOD: {{ . }} diff --git a/values.yaml b/values.yaml index 352c203..e766afc 100644 --- a/values.yaml +++ b/values.yaml @@ -78,6 +78,10 @@ mastodon: permission: "" # -- If you have a caching proxy, enter its base URL here. alias_host: "" + # When uploading data to S3, if the number of bytes to send exceedes + # multipart_threshold then a multi part session is automatically started + # and the data is sent up in chunks. Defaults to 16777216 (16MB). + multipart_threshold: "" deepl: enabled: false plan: @@ -541,7 +545,8 @@ revisionPodAnnotation: true jobAnnotations: {} # -- Default resources for all Deployments and jobs unless overwritten -resources: {} +resources: + {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following