Repository navigation
build(ui): serve the UI from distroless nginx with a Go entrypoint - #3316
Merged
Merged
Conversation
The runtime stage is cgr.dev/chainguard/nginx with no shell. The chart now renders env-config.js into the ui-config ConfigMap and rewrites <base href> with sub_filter, replacing init.sh and the ui ConfigMap env. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nicholas Bucher <nicholas.bucher@solo.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nicholas Bucher <nicholas.bucher@solo.io>
…nd init.sh references Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Charlesthebird
marked this pull request as ready for review
October 22, 2026 17:35
…tays distroless The entrypoint replaces init.sh with the same env vars, defaults, validation and output files, then execs nginx. The chart's env flow is unchanged from main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
…ript Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
Collaborator
Author
|
Both UI images ran on one kind cluster installed with
🤖 written by Claude kagent-pr3316-verify.mp4Screenshots🤖 written by Claude |
EItanya
approved these changes
Oct 22, 2026
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.












🤖 written by Claude (start)
Changes
The UI image's runtime stage is now
chainguard/nginx, with no shell orcurl. A static Go entrypoint replacesinit.shand keeps its contract: same env vars, defaults, validation, output files andnginxarguments./tmpdirs, rendersenv-config.js, sets<base href>, execs nginxinit.shbeside it and diffs the files and warningsThe chart is unchanged apart from the probe docs: exec probes can't run without a shell, so use
httpGetortcpSocket.ui/.nvmrcis24.22.1. The image drops from 56MB to 28MB, and trivy and grype report 0 findings (1 and 2 before).Reviewer notes
entrypoint:instead ofinit.sh:.ui/entrypoint/testdataas the test's reference.Testing
docker build -t kagent-ui:dev -f ui/Dockerfile ui, thenkind load docker-image kagent-ui:dev.--set ui.basePath=/ui, and aui.enventry forKAGENT_UI_EXTENSION_TOKENthat reads a Secret viavalueFrom.curl localhost:8080/ui/env-config.jsshows the Secret's value and"BASE_PATH": "/ui".curl localhost:8080/ui/agentsshows<base href="/p/https://github.com/ui/", and the pod passes its/healthprobe.Release note
🤖 written by Claude (end)
🤖 Generated with Claude Code