Skip to content

feat(admin): probe original namespace before mirror namespace in image registry mirror (#1161)#1162

Open
jake11-oho wants to merge 3 commits into
alibaba:masterfrom
jake11-oho:worktree-image-replace
Open

feat(admin): probe original namespace before mirror namespace in image registry mirror (#1161)#1162
jake11-oho wants to merge 3 commits into
alibaba:masterfrom
jake11-oho:worktree-image-replace

Conversation

@jake11-oho

@jake11-oho jake11-oho commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Change image registry mirror probe to a two-step strategy: first probe with original namespace preserved (registry-only replacement), then fall back to mirror namespace replacement
  • Example: gcr.io/foo/python:3.11 → probe mirror.com/foo/python:3.11 first, then mirror.com/rock-public/python:3.11
  • Images without an original namespace (e.g. python:3.11) retain existing behavior

fixes #1161

Test plan

  • All 26 existing mirror tests updated and passing
  • New test test_registry_only_miss_falls_back_to_namespace_replace added
  • Verify with real mirror registry in dev environment

🤖 Generated with Claude Code

jake11-oho and others added 2 commits June 25, 2026 05:22
…e registry mirror & bump version to 1.9.4 (alibaba#1161)

When the original image has a namespace (e.g. gcr.io/foo/python:3.11),
probe registry-only replacement first (mirror.com/foo/python:3.11)
before falling back to registry+namespace replacement
(mirror.com/rock-public/python:3.11). Images without a namespace
retain existing behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jake11-oho jake11-oho changed the title feat(admin): probe original namespace before mirror namespace in image registry mirror & bump version to 1.9.4 (#1161) feat(admin): probe original namespace before mirror namespace in image registry mirror (#1161) Jun 25, 2026
…ace matches mirror namespace

Skip redundant HTTP probe when the image's original namespace equals the
mirror's configured namespace, avoiding a wasted round-trip.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(admin): probe original namespace before mirror namespace in image registry mirror

1 participant