Skip to content

feat(crane): cross-registry bridge for v2.0 cross-provider promote#3

Merged
winggundamth merged 1 commit into
mainfrom
feat/v2.0-crane-cross-registry-bridge
Jun 21, 2026
Merged

feat(crane): cross-registry bridge for v2.0 cross-provider promote#3
winggundamth merged 1 commit into
mainfrom
feat/v2.0-crane-cross-registry-bridge

Conversation

@winggundamth

Copy link
Copy Markdown
Contributor

Adds dst_image + dst_registry_username/password to the tagging-container-image-crane reusable so promote-by-retag can copy across registries (k3d local ↔ Artifact Registry) for the v2.0 cross-provider scenarios (s3: k3d→gke, s4: gke→k3d) — not just within one registry.

  • Source/dest auth independent → merged into one docker config (auths keyed by registry host); a no-auth side (k3d HTTP + registry_insecure) omits creds.
  • ENV additive: DOCKER_CONFIG (basic-auth side) + GCE_METADATA_HOST (WI side) can coexist.
  • Back-compat: dst_image defaults to image → existing single-registry callers unchanged.

Part of opsta-ai-pe v2.0 (S4). Companion to #2 (cross-repo gitops-deploy). Next: pull-wait acceptance (edge ArgoCD).

🤖 Generated with Claude Code

Add dst_image + dst_registry_username/password so the crane retag Job can copy
<image>:<tag_from> → <dst_image>:<tag_to> across DIFFERENT registries (k3d↔AR for
the s3/s4 cross-provider scenarios), not just within one. Source/dest auth are
independent, merged into one docker config (auths keyed by host) so crane authenticates
each side; a no-auth side (k3d HTTP + registry_insecure) omits its creds. ENV is additive
(DOCKER_CONFIG + GCE_METADATA_HOST can coexist: basic-auth side + WI side). dst_image
defaults to image → existing single-registry callers unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@winggundamth winggundamth merged commit ed5b4f7 into main Jun 21, 2026
@winggundamth winggundamth deleted the feat/v2.0-crane-cross-registry-bridge branch June 21, 2026 10:34
winggundamth added a commit that referenced this pull request Jun 21, 2026
…istry) (#6)

Add registry_username/password secrets + a basic-auth branch: when no Workload-Identity SA but a
registry password is present, build a docker config (auths keyed by registry host) and mount it so
kaniko can push to a private basic-auth registry (e.g. a Harbor robot). Mutually exclusive with the
WI SA path; k3d insecure path unchanged. Completes the registry-flexibility set: build (this) +
promote/bridge (crane #3) now both speak basic-auth, so nonprod=Harbor / prod=cloud works end-to-end.

Co-authored-by: Jirayut Nimsaeng (Dear) <jirayut@opsta.co.th>
Co-authored-by: Claude Opus 4.8 (1M context) <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.

2 participants