From 848d65b0a0e3c28b69e6e6b125e79522b7d47676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= <57442769+gjedlicska@users.noreply.github.com> Date: Fri, 23 Dec 2022 14:50:46 +0100 Subject: [PATCH] gergo/helmDisableFileUpload (#1278) * style(server): fix formatting * fix(preview-service): fix chromium deps in Dockerfile * feat(helm chart): expose file uploads disable flag in the helm chart --- .../helm/speckle-server/templates/server/deployment.yml | 9 +++++++++ utils/helm/speckle-server/values.yaml | 3 +++ 2 files changed, 12 insertions(+) diff --git a/utils/helm/speckle-server/templates/server/deployment.yml b/utils/helm/speckle-server/templates/server/deployment.yml index 08c03eea9..3d91fd8ce 100644 --- a/utils/helm/speckle-server/templates/server/deployment.yml +++ b/utils/helm/speckle-server/templates/server/deployment.yml @@ -128,6 +128,15 @@ spec: value: "/postgres-certificate/ca-certificate.crt" {{- end }} + {{- if .Valuse.server.file_uploads.enabled }} + - name: DISABLE_FILE_UPLOADS + value: "false" + {{ else }} + - name: DISABLE_FILE_UPLOADS + value: "true" + {{ end }} + + # *** S3 Object Storage *** {{- if (or .Values.s3.configMap.enabled .Values.s3.endpoint) }} {{- $s3values := ((include "server.s3Values" .) | fromJson ) }} diff --git a/utils/helm/speckle-server/values.yaml b/utils/helm/speckle-server/values.yaml index b51f45c53..08f1de12a 100644 --- a/utils/helm/speckle-server/values.yaml +++ b/utils/helm/speckle-server/values.yaml @@ -530,6 +530,9 @@ server: ## access to most secrets on the cluster and access to the Kubernetes API. ## create: true + fileUploads: + ## @param server.fileUpload.enabled If enabled, file uploads on the server will be flagged as enabled + enabled: true monitoring: apollo: