-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Pick registry to login from full image name as well #1905
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
Conversation
|
☔ The latest upstream changes (presumably #1317) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@umohnani8: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
|
@umohnani8: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
270361b to
8fe2609
Compare
|
Should be ready to merge once tests are green. |
|
rebase to fix this |
podman login reg.io/username/image works as well now. It picks the registry and checks for authentication, if none exist it will prompt for username and password. If the credentials exist but are not valid, it will prompt the user for new valid credentials. Signed-off-by: Urvashi Mohnani <[email protected]>
|
Rebased |
|
LGTM |
|
/lgtm |
|
/approve |
mtrmac
left a comment
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.
| var ( | ||
| username string | ||
| password string | ||
| ) |
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.
(Absolutely non-blocking nit: These declarations are unnecessary. The first CheckAuth can use *FromAuthFile directly, and the getUserAndPass can use := for the two variables.)
|
|
||
| // registryFromFullName gets the registry from the input. If the input is of the form | ||
| // quay.io/myuser/myimage, it will parse it and just return quay.io | ||
| // It also returns true if a full image name was given |
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.
(Non-blocking nit: This function (no longer?) returns a second boolean value.)
mtrmac
left a comment
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.
mtrmac
left a comment
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
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baude, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
podman login reg.io/username/image works as well now. It picks
the registry and checks for authentication, if none exist it
will prompt for username and password.
Fixes #1690
Waiting for containers/image#535 to get in. Will fix up the vendor.conf and remove the WIP once that is done.
Signed-off-by: Urvashi Mohnani [email protected]