From 4f6bfb24f67eba8441b2e82028a7348e19cf4b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= <57442769+gjedlicska@users.noreply.github.com> Date: Fri, 2 Aug 2024 13:04:30 +0200 Subject: [PATCH] feat(helm): expose workspace module feature flag (#2566) --- utils/helm/speckle-server/templates/_helpers.tpl | 3 +++ .../helm/speckle-server/templates/frontend_2/deployment.yml | 2 ++ utils/helm/speckle-server/values.schema.json | 5 +++++ utils/helm/speckle-server/values.yaml | 2 ++ 4 files changed, 12 insertions(+) diff --git a/utils/helm/speckle-server/templates/_helpers.tpl b/utils/helm/speckle-server/templates/_helpers.tpl index c3ee52b19..6c5120a0d 100644 --- a/utils/helm/speckle-server/templates/_helpers.tpl +++ b/utils/helm/speckle-server/templates/_helpers.tpl @@ -563,6 +563,9 @@ Generate the environment variables for Speckle server and Speckle objects deploy - name: FF_AUTOMATE_MODULE_ENABLED value: {{ .Values.featureFlags.automateModuleEnabled | quote }} +- name: FF_WORKSPACES_MODULE_ENABLED + value: {{ .Values.featureFlags.workspaceModuleEnabled | quote }} + {{- if .Values.featureFlags.automateModuleEnabled }} - name: SPECKLE_AUTOMATE_URL value: {{ .Values.server.speckleAutomateUrl }} diff --git a/utils/helm/speckle-server/templates/frontend_2/deployment.yml b/utils/helm/speckle-server/templates/frontend_2/deployment.yml index 3438fa6f4..68495be02 100644 --- a/utils/helm/speckle-server/templates/frontend_2/deployment.yml +++ b/utils/helm/speckle-server/templates/frontend_2/deployment.yml @@ -113,6 +113,8 @@ spec: {{- end }} - name: NUXT_PUBLIC_FF_AUTOMATE_MODULE_ENABLED value: {{ .Values.featureFlags.automateModuleEnabled | quote }} + - name: NUXT_PUBLIC_FF_WORKSPACES_MODULE_ENABLED + value: {{ .Values.featureFlags.workspaceModuleEnabled | quote }} {{- if .Values.analytics.survicate_workspace_key }} - name: NUXT_PUBLIC_SURVICATE_WORKSPACE_KEY value: {{ .Values.analytics.survicate_workspace_key | quote }} diff --git a/utils/helm/speckle-server/values.schema.json b/utils/helm/speckle-server/values.schema.json index b1a01a316..13e5adaa7 100644 --- a/utils/helm/speckle-server/values.schema.json +++ b/utils/helm/speckle-server/values.schema.json @@ -49,6 +49,11 @@ "type": "boolean", "description": "Toggles whether to stop writing to the closure table", "default": false + }, + "workspaceModuleEnabled": { + "type": "boolean", + "description": "High level flag fully toggles the workspaces module", + "default": false } } }, diff --git a/utils/helm/speckle-server/values.yaml b/utils/helm/speckle-server/values.yaml index cf784975b..f61a46ec9 100644 --- a/utils/helm/speckle-server/values.yaml +++ b/utils/helm/speckle-server/values.yaml @@ -41,6 +41,8 @@ featureFlags: gendoAIModuleEnabled: false ## @param featureFlags.noClosureWrites Toggles whether to stop writing to the closure table noClosureWrites: false + ## @param featureFlags.workspaceModuleEnabled High level flag fully toggles the workspaces module + workspaceModuleEnabled: false analytics: ## @param analytics.enabled Enable or disable analytics