-
Notifications
You must be signed in to change notification settings - Fork 1.1k
server: add auth info to image pull #440
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
| DockerAuthConfig: &types.DockerAuthConfig{ | ||
| Username: username, | ||
| Password: password, | ||
| }, |
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.
I assume this will be a NOOP when username and password are nil ?
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.
not actually, I re-pushed a fixed version I guess. If those are empty, we'll simply not read the .docker/config.json. The latest revision makes sure not to send anything if password is empty.
71da71a to
c3360b6
Compare
server/image_pull.go
Outdated
| options := ©.Options{} | ||
| // a not empty password should be sufficient to decide whether to send auth | ||
| // or not I guess | ||
| if password != "" { |
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.
Although I can see people using password less accounts, I really don't know how they could have username less ones. So I'd use username not being empty as a criteria to send auth, instead of password.
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.
fixed
Fix the following upstream k8s's e2e-node test: ``` should be able to pull from private registry with secret [Conformance] ``` Signed-off-by: Antonio Murdaca <[email protected]>
c3360b6 to
05cde3e
Compare
|
LGTM |
1 similar comment
|
LGTM |
|
@sarahnovotny @yujuhong Can we get @sameo setup with commit access to the repo? |
Fix the following upstream k8s's e2e-node test:
Signed-off-by: Antonio Murdaca [email protected]