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

Alias Docker image to avoid deletion on upgrade to v4 #483

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

guineveresaenger
Copy link
Contributor

Adds the alias for the v3.x.x Docker image URN token to the new, schematized Image token.
Specifically, docker:index/image:Image is aliased to the previous docker:index:Image.
This should avoid delete/create of a resource during upgrade to v4.

  • Add alias to Image
  • generate schema and SDKs

@guineveresaenger guineveresaenger self-assigned this Feb 8, 2023
@guineveresaenger guineveresaenger added this to the 0.84 milestone Feb 8, 2023
@guineveresaenger guineveresaenger requested a review from a team February 8, 2023 19:40
@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@guineveresaenger guineveresaenger merged commit 5d852bc into master Feb 9, 2023
@guineveresaenger guineveresaenger deleted the alias branch February 9, 2023 17:55
@AaronFriel AaronFriel added the kind/task Work that's part of an ongoing epic label Feb 9, 2023
guineveresaenger added a commit that referenced this pull request Feb 15, 2023
* Add alias to Image

* generate schema and SDKs
guineveresaenger added a commit that referenced this pull request Feb 16, 2023
* fix: Docker auth config lookup portability

On various platforms, the Docker credentials store may return keys with URLs
with a scheme ("https://") prefixed on all entries, or hostnames only. An
exception to this is the legacy Docker index server, which appears as
"https://index.docker.io/v1/".

The push auth config is now selected by first resolving a valid ("non-legacy")
entry, which will be either a hostname aka registry name, or the
"https://index.docker.io/v1/" value. This value is then passed to
`GetAuthConfig`, using the Docker library's existing lookup fallback behavior to
handle URLs.

Two additional legacy names are handled, as discovered by reading the ORAS'
project's implementation with the same goal. See:
https://github.com/oras-project/oras-go/blob/v1.2.2/pkg/auth/docker/resolver.go#L79-L86

* Alias Docker image to avoid deletion on upgrade to v4 (#483)

* Add alias to Image

* generate schema and SDKs

* fix up nodejs test

* Remove JS folder

* Fix up Python container registry test

* Add Go Container Registry test

* Clean up auth code and simplify

* Remove az-py as duplicate container registry test

* Add dotnet registry test

---------

Co-authored-by: Aaron Friel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x.x kind/task Work that's part of an ongoing epic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants