Skip to content

fix(ocp): skip remote tag detection when --kagenti-repo is provided - #1655

Merged
pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:worktree-fix+ocp-setup-tag-override
May 23, 2026
Merged

pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:worktree-fix+ocp-setup-tag-override

Conversation

@pdettori

Copy link
Copy Markdown
Member

Summary

  • Fixes the OCP setup script overriding chart-pinned image tags with the latest remote tag when --kagenti-repo is explicitly provided
  • Remote tag detection now only runs when no repo is specified (using upstream main)
  • When a local repo is passed, the chart's values.yaml image tags are used as-is

Fixes #1654

Test plan

  • Run ./scripts/ocp/setup-kagenti.sh --kagenti-repo . --with-all on OCP — verify UI shows the version pinned in chart values
  • Run ./scripts/ocp/setup-kagenti.sh (no --kagenti-repo) — verify it still detects and uses the latest remote tag
  • Kind install continues to work as before (unaffected code path)

Assisted-By: Claude Code

@huang195 huang195 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.

Summary

Tight, correct fix. The original code used [ -z "$KAGENTI_REPO" ] after _clone_kagenti had already clobbered KAGENTI_REPO with the cache dir, so the "no flag" branch ran for every invocation — including explicit --kagenti-repo <local-path>. Capturing KAGENTI_REPO_ORIGINAL before the clone block resolves it cleanly. The else arm with the explicit log message is a nice touch (operators see exactly which decision was made).

One PR-scope note (non-blocking): the title and body only describe the OCP setup fix, but the diff also includes an unrelated cryptography dependabot ignore. Either split into two PRs (cleaner revert story) or amend the description to cover both. The dependabot change itself is sensible — the cryptography 47+ ARM64 SIGILL is real and the pin is intentional.

Areas reviewed: Shell (setup-kagenti.sh), CI config (dependabot.yml)
Commits: 2, both signed-off
CI status: pending checks queued; no failures.

Assisted-By: Claude Code

Comment thread .github/dependabot.yml
update-types: [minor, patch]
ignore:
# cryptography 47+ crashes with SIGILL on ARM64 Kind clusters.
# Pin is intentional — block all bumps above the current upper bound.

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.

Nit: the existing comment explains why the pin exists (47+ ARM64 SIGILL) but not what's allowed. With both version-update:semver-major and version-update:semver-minor ignored, only patch bumps get through — worth one extra line for the next maintainer:

# cryptography 47+ crashes with SIGILL on ARM64 Kind clusters.
# Pin is intentional — block all bumps above the current upper bound.
# Effect: only patch bumps allowed for cryptography until the SIGILL is resolved upstream.

pdettori added 3 commits May 23, 2026 16:09
cryptography is intentionally pinned to <47 in kagenti/backend because
versions 47+ crash with SIGILL on ARM64 Kind clusters. Add a Dependabot
ignore rule to prevent it from repeatedly opening PRs that conflict with
this constraint.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
The OCP setup script unconditionally overrode UI/backend image tags by
fetching the latest git tag from the remote repo. This caused version
mismatch when installing from a local repo that has pinned tags in its
chart values (e.g. v0.6.0-rc.6 in values.yaml gets overridden to
v0.7.0-alpha.1 from the remote).

Now the remote tag detection only runs when no --kagenti-repo is passed.
When a local repo is provided, the chart's pinned image tags are used
as-is.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori
pdettori force-pushed the worktree-fix+ocp-setup-tag-override branch from 3e9b843 to 404ae49 Compare May 23, 2026 20:09
@pdettori
pdettori merged commit bafe0d7 into rossoctl:main May 23, 2026
22 checks passed
@github-project-automation github-project-automation Bot moved this from New /:ToDo to Done in Rossoctl Issue Prioritization May 23, 2026
@pdettori
pdettori deleted the worktree-fix+ocp-setup-tag-override branch May 23, 2026 20:37
eranra pushed a commit to eranra/kagenti that referenced this pull request May 24, 2026
…-tag-override

fix(ocp): skip remote tag detection when --kagenti-repo is provided
Signed-off-by: Eran Raichstein <[email protected]>
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.

OCP setup script overrides pinned image tags with latest remote tag

2 participants