Repository navigation
fix(ci): pin correct image tags in Helm chart on release - #1048
Merged
huang195 merged 1 commit intoMar 18, 2026
Merged
Conversation
The "Package and push kagenti chart" step used `yq e ".ui.tag = ..."` to rewrite image tags at chart-packaging time, but no Helm template reads `.ui.tag` — they use `.ui.frontend.tag`, `.ui.backend.tag`, and the three `*OAuthSecret.tag` paths. This meant published charts shipped with `:latest` for oauth-secret images and stale alpha tags for ui/backend. Replace the dead yq path with correct rewrites for all five CI-built images: ui.frontend, ui.backend, uiOAuthSecret, agentOAuthSecret, and apiOAuthSecret. Also remove the identical dead yq rewrite from the kagenti-deps chart step, which has no CI-built images to pin. Signed-off-by: Hai Huang <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
huang195
added a commit
to huang195/kagenti
that referenced
this pull request
Mar 18, 2026
The ui-v2 and backend images were pinned to v0.5.0-alpha.11 in values.yaml, but CI rebuilds :latest on every push to main. Developers on main should always get the newest build, so use tag: latest like the oauth-secret images already do. The CI chart-packaging step (fixed in rossoctl#1048) rewrites these to the release version when publishing from a v* tag, so released charts are unaffected. Signed-off-by: Hai Huang <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
2 tasks
huang195
added a commit
to huang195/kagenti
that referenced
this pull request
Mar 18, 2026
Chart packaging steps were inside the build-and-push matrix job, causing them to run 6 times concurrently (once per image). This wasted CI minutes, risked race conditions on helm push, and meant charts could be published before all images finished building. Move chart packaging into a dedicated package-charts job that runs once after all images are built (needs: build-and-push). This also: - Fixes the dead yq path (.ui.tag) with correct paths for all 5 CI-built images: ui.frontend, ui.backend, uiOAuthSecret, agentOAuthSecret, apiOAuthSecret - Removes the dead yq rewrite from kagenti-deps (no CI-built images) - Fixes double-slash typo in CHARTS_PATH paths Supersedes rossoctl#1048. Signed-off-by: Hai Huang <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
3 tasks
pdettori
approved these changes
Mar 18, 2026
pdettori
left a comment
Member
There was a problem hiding this comment.
Correct, well-verified bug fix. The old .ui.tag path never existed in values.yaml, so published charts shipped oauth-secret images as :latest and UI images with stale pre-release tags on every release.
All 5 new yq paths verified against values.yaml and confirmed consumed by the Helm templates (ui.yaml, *-oauth-secret-job.yaml). The kagenti-deps dead rewrite removal is also safe — that chart has no CI-built images, only pinned external dependencies.
Areas reviewed: CI/GitHub Actions, Helm chart paths cross-referenced
Commits: 1, signed-off ✅, Assisted-By ✅
CI: All automated checks passing ✅
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.
Summary
yq e ".ui.tag = ..."path in the chart-packaging step with correct rewrites for all 5 CI-built images:.ui.frontend.tag,.ui.backend.tag,.uiOAuthSecret.tag,.agentOAuthSecret.tag,.apiOAuthSecret.tagyqrewrite from kagenti-deps chart step (no CI-built images to pin)Context
The existing
yqrewrite targeted.ui.tag, but no Helm template reads that path — they use.ui.frontend.tag,.ui.backend.tag, and the*OAuthSecret.tagpaths. This meant released charts shipped with:latestfor oauth-secret images and stale alpha tags for ui/backend instead of the release version.Images intentionally NOT rewritten
mlflowOAuthSecretquay.io/ladas/(external), not built by this CI. Has a TODO to migratephoenixOAuthSecretkagenti-operator-chartVerification
After merge, inspect a published chart from a
v*tag:All CI-built images should show the version tag, not
latestor stale alphas.Test plan
yqpaths matchvalues.yamlstructure (.ui.frontend.tagat line 64,.ui.backend.tagat line 78, etc.)ui.yaml,*-oauth-secret-job.yaml)🤖 Generated with Claude Code