-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oci/auth: Fix ImageRegistryProvider for repo root #434
Conversation
ab7013d
to
faac385
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @darkowlzz 🏅
faac385
to
3228dd6
Compare
When a repository root is provided, ImageRegistryProvider() fails to identify the registry host. The provided name.Reference for repository root is a Tag reference. name.ParseReference(), assumes that that given string is the name and registry host being empty defaults to index.docker.io. ImageRegistryProvider() now takes the full address, in addition to the name.Reference and uses the full address for analysis if there's no "/" in the address, which indicates that it's a repository root. This fixes login with repository root for all the providers, not just AWS. Signed-off-by: Sunny <[email protected]>
3228dd6
to
cb4fdc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When a repository root is provided,
ImageRegistryProvider()
fails to identify the registry host. The providedname.Reference
for repository root is aTag
reference.name.ParseReference()
, assumes that that given string is the name and registry host being empty defaults to index.docker.io.ImageRegistryProvider()
now takes the full address, in addition to thename.Reference
and uses the full address for analysis if there's no "/" in the address, which indicates that it's a repository root.This fixes login with repository root for all the providers, not just AWS.
Fixes fluxcd/source-controller#951, #429 .
Tested it against EKS with OCI Helm Chart, which was failing before as reported in the above issues.