Skip to content

[backport] [3509] - Treat the UI as an optional client of the 1.x platform - #3845

Open
fiunchinho wants to merge 1 commit into
kagent-dev:release/v1.0.xfrom
giantswarm:upstream/backport-3527-v1.0.x
Open

fiunchinho wants to merge 1 commit into
kagent-dev:release/v1.0.xfrom
giantswarm:upstream/backport-3527-v1.0.x

Conversation

@fiunchinho

@fiunchinho fiunchinho commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #3527 to release/v1.0.x.

Description

Why it may be worth taking on 1.0.x:

  • It is additive and opt-out: ui.enabled defaults to true, and the default render of this branch does not change.
  • It lets people who run 1.0.x as a platform only (CRDs, controller, A2A, their own client) stop deploying the UI, as asked in [FEATURE] Treat the UI as an optional client of the 1.x platform #3509, without waiting for the next minor release.
  • The only new failure is opt-in: the chart refuses oauth2-proxy.enabled=true together with ui.enabled=false.

Change Type

/kind feature

Changelog

The kagent chart has a new `ui.enabled` value (default `true`). Set it to `false` to stop deploying the UI. `oauth2-proxy.enabled=true` requires `ui.enabled=true`.

I used an AI assistant to prepare this backport and this description.

…nt-dev#3527)

Adds a top level `ui.enabled` value to the kagent chart so you can turn
the UI off. Refs kagent-dev#3509

- `ui.enabled` defaults to `true` so existing installs render the same
manifests as main, no UI pod restart on upgrade.
- with `ui.enabled=false` the chart skips the UI Deployment, Service,
ServiceAccount and both configmaps (ui config + nginx). UI PDB,
HTTPRoute and the OpenShift Route are skipped too, even if their own
flags are on
- NOTES drop the UI access steps, the UI line under deployed components
and the UI PDB check when its off, and just print a short "UI: disabled"
line instead.

- added helm unittest cases - default still renders the UI deployment,
`ui.enabled=false` renders nothing UI related even with PDB/HTTPRoute
turned on, and NOTES on/off. `make helm-test` passes
- ran `helm lint` and `helm template` with the flag on and off
- haven't tried it on a live cluster yet

- `kagent dashboard` always port-forwards to `service/kagent-ui` so
it'll error out when the UI is disabled
- controller still injects `KAGENT_UI_URL` into agents if
`ui.externalUrl` is set, even with UI off
- push issuer still falls back to `ui.externalUrl`
- `oauth2-proxy` defaults `UPSTREAM_URL` to `http://kagent-ui:8080`
which wont have anything behind it when the UI is disabled

This might overlap with kagent-dev#3430 (moves UI serving into the controller).
happy to rename the value if that lands so it still makes sense.

| Check | Command | Result |
|---|---|---|
| Helm unit tests | `make helm-test` | 351/351 passed, 33/33 suites
(includes 2 new suites: `ui-enabled_test.yaml`,
`ui-enabled-notes_test.yaml`) |
| Lint, default values | `helm lint helm/kagent` | Pass |
| Lint, UI disabled | `helm lint helm/kagent --set ui.enabled=false` |
Pass |
| Default render vs `main` | `helm template` diff against `main` |
Byte-identical (1,165 lines, 25 objects) |
| Render with UI disabled | `helm template --set ui.enabled=false` | 855
lines, 20 objects; UI Deployment, Service, ServiceAccount and both UI
ConfigMaps removed |
| UI disabled, sub-toggles forced on | `--set ui.enabled=false` with
`ui.pdb.enabled`, `ui.httpRoute.enabled`, `ui.route.enabled` set to true
| 0 UI objects rendered |
| Cluster install | n/a | Not run (no cluster) |
| Go / CLI | n/a | Not changed, not tested |

AI assisted with implementing the helm changes and unit tests in this
PR, including running the validation of the tests as well!

---------

Signed-off-by: Anpoo Sivanadi <sivanadi08@gmail.com>
(cherry picked from commit c65e3c4)
Signed-off-by: Jose Armesto <github@armesto.net>
@fiunchinho
fiunchinho marked this pull request as ready for review December 1, 2026 12:57
@fiunchinho
fiunchinho requested a review from a team as a code owner December 1, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants