Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle multi-architecture images in registry lookup
The webhook was failing when trying to inspect images that only had arm64 variants available, as it defaulted to looking up amd64 images first. This was problematic because the webhook runs before pod scheduling, so we don't yet know which architecture the pod will run on. The fix modifies the image lookup logic to take the first available image manifest from the registry's manifest list, regardless of architecture. This works because the core image configuration (entrypoint, env vars, etc.) that we need to inspect is typically identical across architectures. Signed-off-by: Nils Mueller <20240901+Tolsto@users.noreply.github.com>
- Loading branch information