Skip to content
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

feat(oci/client.rs): add registry_from_input helper #2513

Merged
merged 1 commit into from
May 16, 2024

Conversation

vdice
Copy link
Member

@vdice vdice commented May 15, 2024

Adds a helper to hold parsing logic around converting the user-supplied registry server into a form compatible with the underlying oci library. This helper also includes logic to avoid the failure mode for spin registry login docker.io which would previously error out with an unhelpful message.*

*Note, although the underlying oci-distribution library has a similar helper, it uses a qualified Reference (eg docker.io/ubuntu:latest) which the provided server string is not, as it only represents the registry portion. Hence using our own logic here.

@vdice vdice requested a review from lann May 15, 2024 22:20
@vdice vdice force-pushed the feat/login-registry-from-input branch from 0d23a22 to 72f4343 Compare May 15, 2024 22:44
@vdice vdice requested a review from itowlson May 15, 2024 22:50
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested but it looks fine to me!

@vdice vdice merged commit e078f8d into fermyon:main May 16, 2024
17 checks passed
@vdice vdice deleted the feat/login-registry-from-input branch May 16, 2024 18:45
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