Repository navigation
[backport] [3509] - Treat the UI as an optional client of the 1.x platform - #3845
Open
fiunchinho wants to merge 1 commit into
Open
fiunchinho wants to merge 1 commit into
fiunchinho wants to merge 1 commit into
Conversation
…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
marked this pull request as ready for review
December 1, 2026 12:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #3527 to
release/v1.0.x.Description
Why it may be worth taking on 1.0.x:
ui.enableddefaults totrue, and the default render of this branch does not change.oauth2-proxy.enabled=truetogether withui.enabled=false.Change Type
/kind feature
Changelog
I used an AI assistant to prepare this backport and this description.