Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions helm/flowfuse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions helm/flowfuse/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
25 changes: 25 additions & 0 deletions helm/flowfuse/tests/configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 8 additions & 0 deletions helm/flowfuse/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,14 @@
}
}
},
"ai": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"expert": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions helm/flowfuse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ forge:

expert: {}

ai:
enabled: true

tables:
enabled: false

Expand Down
Loading