Skip to content

Cleanup v1 registry code that is not used for searching#41599

Merged
tiborvass merged 6 commits intomoby:masterfrom
thaJeztah:cleanup_some_v1_stuff
Oct 28, 2020
Merged

Cleanup v1 registry code that is not used for searching#41599
tiborvass merged 6 commits intomoby:masterfrom
thaJeztah:cleanup_some_v1_stuff

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

See individual commits for details. This will likely conflict with #39371, which also removes the "fallback" errors, but I think that's causing that PR to fail (i.e. when using "insecure registries", and connecting to https:// fails, it should continue with the next endpoint).

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
There's no need to parse or validate the default registry, as it's
a constant value.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
This test was added in 0fc1169 as
a regression test for saving credentials by the CLI.

However, the CLI code is no longer in this repository, so it was
no longer testing anything.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added area/distribution Image Distribution status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Oct 28, 2020
Comment thread registry/session.go Outdated
Comment on lines 4 to 5
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure if this is still needed; it was added in #5600 to address #5173

@thaJeztah thaJeztah force-pushed the cleanup_some_v1_stuff branch from 50ec5aa to b90ef12 Compare October 28, 2020 14:26
@thaJeztah
Copy link
Copy Markdown
Member Author

Whoop! this is green (with the exception of s390x, which is tracked through #41561). I'll kick CI once, to see if it goes green

Copy link
Copy Markdown
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

SGTM

@thaJeztah
Copy link
Copy Markdown
Member Author

checked with @cpuguy83 if this conflicts with some of the registry work he was working on, but should not conflict, so this one should be ready to go

@tiborvass tiborvass merged commit bb23f1b into moby:master Oct 28, 2020
@thaJeztah thaJeztah deleted the cleanup_some_v1_stuff branch October 28, 2020 22:01
@thaJeztah thaJeztah added this to the 20.10.0 milestone Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/distribution Image Distribution kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants