Repository navigation
fix(ocp): skip remote tag detection when --kagenti-repo is provided - #1655
Conversation
huang195
left a comment
There was a problem hiding this comment.
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
| 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. |
There was a problem hiding this comment.
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.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]>
3e9b843 to
404ae49
Compare
…-tag-override fix(ocp): skip remote tag detection when --kagenti-repo is provided Signed-off-by: Eran Raichstein <[email protected]>
Summary
--kagenti-repois explicitly providedvalues.yamlimage tags are used as-isFixes #1654
Test plan
./scripts/ocp/setup-kagenti.sh --kagenti-repo . --with-allon OCP — verify UI shows the version pinned in chart values./scripts/ocp/setup-kagenti.sh(no--kagenti-repo) — verify it still detects and uses the latest remote tagAssisted-By: Claude Code