-
Notifications
You must be signed in to change notification settings - Fork 395
pkg/docker/config: Deprecate GetUserLoggedIn #597
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
pkg/docker/config: Deprecate GetUserLoggedIn #597
Conversation
5a9ae55 to
ee8c757
Compare
|
Need to update containers/image to reflect the latest changes in containers/storage: Code LGTM 👍 Thanks, @wking ! |
|
If we are doing this, I’d just remove the method; a I do need to check the earlier history of the code (notably #333 ), the different handling and/or the |
ee8c757 to
2ec5f3f
Compare
Use GetAuthentication directly, replacing: username, err := GetUserLoggedIn(sys, registry) with: username, _, err := GetAuthentication(sys, registry) This is just as convenient and removes the differences between lookup logic from the two functions (e.g. GetUserLoggedIn ignored DockerAuthConfig). I've removed the function instead of deprecating at Miloslav's request [1]. GetUserLoggedIn originally landed in f28367e (Add docker/config package to containers/image/pkg, 2017-08-29, containers#333), and neither the commit message nor the pull request motivate the diversion from the GetAuthentication lookup logic. [1]: containers#597 (comment) Signed-off-by: W. Trevor King <[email protected]>
2ec5f3f to
e64a79b
Compare
I've pushed ee8c757 -> e64a79b, removing it.
I checked, and saw no discussion in either the commit message or pull request that motivated the different lookup logic. You can obviously still check for yourself too ;). |
|
@wking ping... |
|
I am updating this PR, so we can merge it. |
|
Note to ourselves, we must update Podman (and Buildah?) afterward. |
|
Fixes: #596 |
|
LGTM |
|
I need window 10 to download docker on my PC |
And refactor it to use
GetAuthentication, which is just as convenient for callers. This also removes the lookup differences between lookup logic between the two functions (e.g.GetUserLoggedInused to ignoreDockerAuthConfig).Spun off from #588 here and #596.