Skip to content

fix(ci): pin correct image tags in Helm chart on release - #1048

Merged
huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/ci-pin-image-tags-on-release
Mar 18, 2026
Merged

huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/ci-pin-image-tags-on-release

Conversation

@huang195

Copy link
Copy Markdown
Member

Summary

  • Replace dead 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.tag
  • Remove identical dead yq rewrite from kagenti-deps chart step (no CI-built images to pin)

Context

The existing yq rewrite targeted .ui.tag, but no Helm template reads that path — they use .ui.frontend.tag, .ui.backend.tag, and the *OAuthSecret.tag paths. This meant released charts shipped with :latest for oauth-secret images and stale alpha tags for ui/backend instead of the release version.

Images intentionally NOT rewritten

Image Reason
mlflowOAuthSecret Points to quay.io/ladas/ (external), not built by this CI. Has a TODO to migrate
phoenixOAuthSecret Not in CI build matrix — no image is built for it
kagenti-operator-chart Built by kagenti-operator repo, pinned manually
webhook sidecar images Built by kagenti-extensions repo, pinned manually

Verification

After merge, inspect a published chart from a v* tag:

helm show values oci://ghcr.io/kagenti/kagenti/kagenti --version <new-version> | grep 'tag:'

All CI-built images should show the version tag, not latest or stale alphas.

Test plan

  • Verify yq paths match values.yaml structure (.ui.frontend.tag at line 64, .ui.backend.tag at line 78, etc.)
  • Verify Helm templates consume these paths (ui.yaml, *-oauth-secret-job.yaml)
  • On next alpha tag, inspect the published chart to confirm tags are pinned

🤖 Generated with Claude Code

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]>
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]>

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ✅

@huang195
huang195 merged commit 8cd3d6c into rossoctl:main Mar 18, 2026
18 checks passed
@huang195
huang195 deleted the fix/ci-pin-image-tags-on-release branch March 18, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants