Skip to content

Multi container registry support#185

Draft
mxey wants to merge 3 commits into
git-pkgs:mainfrom
conetcloud:multi-registry
Draft

Multi container registry support#185
mxey wants to merge 3 commits into
git-pkgs:mainfrom
conetcloud:multi-registry

Conversation

@mxey

@mxey mxey commented Jul 7, 2026

Copy link
Copy Markdown

for #56

Open issues:

  • registry.k8s.io is hardcoded, no configuration
  • no authentication for registries yet (should probably detect the auth URL from the registry response headers)
  • cache directory does not account for registry: registry.k8s.io/kube-apiserver becomes cache/artifacts/oci/kube-apiserver

mxey added 3 commits July 7, 2026 11:10
Centralize most of the logic for getting an auth token and adding it to
the request in preparation for supporting container registries without
authentication.
Docker Hub remains the only implemented registry,
but this allows it to work with registry.k8s.io.

Ideally the authURL would not be hardcoded per registry but be
discovered from the registry's response headers.
@mxey

mxey commented Jul 7, 2026

Copy link
Copy Markdown
Author

@andrew This already works for registry.k8s.io because it requires no authentication. I haven't added any tests or configuration yet, but is this a general direction you'd accept?

Also CONTRIBUTING.md didn't say whether you prefer multi-commit PRs or stacked PRs.

@mxey mxey changed the title Multi registry support Multi container registry support Jul 7, 2026
@mxey

mxey commented Jul 7, 2026

Copy link
Copy Markdown
Author

The auth parts of this might have to change depending on #186

@markkrj

markkrj commented Jul 7, 2026

Copy link
Copy Markdown

@mxey

mxey commented Jul 7, 2026

Copy link
Copy Markdown
Author

@markkrj Do you mean just the fact that it's configurable? As I said in my initial PR description, configuration is still missing. This is a prototype to gather feedback on the basic idea.

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