From 4cf0a4ce43e558692aca78b20f8e1b04de135cb4 Mon Sep 17 00:00:00 2001 From: ppawlowski Date: Wed, 27 May 2026 07:57:01 +0200 Subject: [PATCH 1/4] Add ai config to configmap --- helm/flowfuse/templates/configmap.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helm/flowfuse/templates/configmap.yaml b/helm/flowfuse/templates/configmap.yaml index 0cb31c5a..311d18ff 100644 --- a/helm/flowfuse/templates/configmap.yaml +++ b/helm/flowfuse/templates/configmap.yaml @@ -328,6 +328,10 @@ data: requestTimeout: {{ .Values.forge.assistant.requestTimeout | default 60000 }} {{- end }} {{- end }} + {{- if .Values.forge.ai }} + ai: + enabled: {{ .Values.forge.ai.enabled | default false }} + {{- end }} {{- if .Values.forge.expert }} expert: enabled: {{ .Values.forge.expert.enabled | default false }} From 9dde961cfd1f4da8cdff4999f2b96b6b6d51795e Mon Sep 17 00:00:00 2001 From: ppawlowski Date: Wed, 27 May 2026 07:57:12 +0200 Subject: [PATCH 2/4] Add simple unit tests --- helm/flowfuse/tests/configmap_test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/helm/flowfuse/tests/configmap_test.yaml b/helm/flowfuse/tests/configmap_test.yaml index 7082d2e1..494c0ad8 100644 --- a/helm/flowfuse/tests/configmap_test.yaml +++ b/helm/flowfuse/tests/configmap_test.yaml @@ -315,3 +315,28 @@ tests: - matchRegex: path: data["flowforge.yml"] pattern: "accessMode: ReadWriteMany" + + - it: should render ai enabled by default + asserts: + - matchRegex: + path: data["flowforge.yml"] + pattern: "ai:" + - matchRegex: + path: data["flowforge.yml"] + pattern: "ai:\\n\\s{2,}enabled: true" + + - it: should render ai disabled when forge.ai.enabled is false + set: + forge.ai.enabled: false + asserts: + - matchRegex: + path: data["flowforge.yml"] + pattern: "ai:\\n\\s{2,}enabled: false" + + - it: should render ai enabled when forge.ai.enabled is true + set: + forge.ai.enabled: true + asserts: + - matchRegex: + path: data["flowforge.yml"] + pattern: "ai:\\n\\s{2,}enabled: true" From 99243aa2274bbc1fbdb4ef81dd006842a99d0d06 Mon Sep 17 00:00:00 2001 From: ppawlowski Date: Wed, 27 May 2026 07:57:21 +0200 Subject: [PATCH 3/4] Update readme --- helm/flowfuse/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helm/flowfuse/README.md b/helm/flowfuse/README.md index e9ef3df5..aa6a1c65 100644 --- a/helm/flowfuse/README.md +++ b/helm/flowfuse/README.md @@ -311,6 +311,10 @@ Everything under `forge.rate_limits` is used as input to Fastify Rate Limit plug - `forge.expert.broker.address` Address of the MQTT broker to use for communication with the Expert service (default not set). Requires `forge.broker.teamBroker.enabled=true`, since the local team broker bridges to this central broker. - `forge.expert.broker.port` Port of the MQTT broker to use for communication with the Expert service (default `8883`) +### AI + + - `forge.ai.enabled` Enable/disable AI features (default `true`) + ### Ingress - `ingress.annotations` ingress annotations (default is `{}`). This value is also applied to Editor instances created by FlowFuse. - `ingress.className` ingress class name (default is `"""`). This value is also applied to Editor instances created by FlowFuse. From 3ab652179c19a540521acba7add2702e21de9fd9 Mon Sep 17 00:00:00 2001 From: ppawlowski Date: Wed, 27 May 2026 07:57:46 +0200 Subject: [PATCH 4/4] Update chart values and values schema --- helm/flowfuse/values.schema.json | 8 ++++++++ helm/flowfuse/values.yaml | 3 +++ 2 files changed, 11 insertions(+) diff --git a/helm/flowfuse/values.schema.json b/helm/flowfuse/values.schema.json index 5841984e..c8ece7d8 100644 --- a/helm/flowfuse/values.schema.json +++ b/helm/flowfuse/values.schema.json @@ -1016,6 +1016,14 @@ } } }, + "ai": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + } + }, "expert": { "type": "object", "properties": { diff --git a/helm/flowfuse/values.yaml b/helm/flowfuse/values.yaml index 273fc365..aafd0e36 100644 --- a/helm/flowfuse/values.yaml +++ b/helm/flowfuse/values.yaml @@ -168,6 +168,9 @@ forge: expert: {} + ai: + enabled: true + tables: enabled: false