Repository navigation
fix(control-plane): pin interceptor image by digest only for the spec repository - #1202
Merged
Merged
Conversation
… repository The policy interceptor sidecar took any repo@sha256 image ID from the controller's Pod status as its image. On Kind with the podman provider the kubelet reports archive-loaded images as docker.io/library/import-<date>@sha256, a name no registry serves, so the sidecar hit ImagePullBackOff and gateways never became ready. Use the image ID's digest pin only when its normalized repository matches the spec image's repository; otherwise keep the spec image (PLAT-PGP-09.03). Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
HyperShell environment destroyedThis ephemeral OpenShift environment has been destroyed. Comment |
|
This pull request is merged. |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #1202 +/- ##
==========================================
- Coverage 46.94% 46.94% -0.01%
==========================================
Files 474 474
Lines 38535 38546 +11
==========================================
+ Hits 18091 18094 +3
- Misses 18309 18315 +6
- Partials 2135 2137 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
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
Gateways never become ready on Kind clusters that load the controller image from a podman archive. This PR fixes how the policy interceptor sidecar picks its image.
Reproduction (Lima VM, Kind with the podman provider)
hypershell-limaskill. It runs Kind with the podman provider.localhost/hypershell-controller:dev, loaded into Kind from an image archive.ImageIDasdocker.io/library/import-2026-11-26@sha256:9ff3.... That is a placeholder name containerd gives to imported archives.imageFromPodreturned anyrepo@sha256:...ImageID as the exact pin, so the interceptor sidecar used that name.ErrImagePull/ImagePullBackOff("pull access denied, repository does not exist").main.Fix
imageFromPodnow uses the ImageID'srepo@digestonly when its repository matches the spec image's repository.github.com/distribution/reference(ParseNormalizedNamed), socp:devmatchesdocker.io/library/cp.import-...placeholder, a different repository) keeps the spec image.Spec
Added a sentence to PLAT-PGP-09 and a new scenario, PLAT-PGP-09.03 (unpullable image ID falls back to the spec image).
make check-spec-idspasses.Tests
New table test
TestOwnImagePinsDigestOnlyForTheSpecRepository(// Verifies: PLAT-PGP-09.01, PLAT-PGP-09.03):docker-pullable://prefix is strippedimport-...mismatch falls back to the spec imagego build,go vetandgo test ./...incomponents/control-planepass, andmake checkpasses at the repo root.The OpenShell v0.1.10 bump (#1199) will be rebased onto this change.
🤖 Generated with Claude Code