-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Fix problem accessing private docker registries #57463
Fix problem accessing private docker registries #57463
Conversation
/assign @juanvallejo |
/priority critical-urgent |
0b7939b
to
30a0c54
Compare
Did we verify this fixes the issue? |
Also, it makes me unhappy that we have no end to end tests for this |
Needs a cherrypick |
@liggitt @juanvallejo looks like we are doing the right thing on the server side - https://github.com/kubernetes/kubernetes/blob/master/pkg/credentialprovider/keyring.go#L312 |
@ncdc ack, as soon as @juanvallejo and i verify things work |
@juanvallejo @liggitt we do have at least one unit test on the server side - https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kuberuntime/kuberuntime_image_test.go#L154 |
@jvallejo do you have a real registry to try with? |
30a0c54
to
6738da1
Compare
In 027c8b9, we added code to move from .dockercfg to config.json file. But we forgot to use the right secret type and the key to store the base64'ed creds
@juanvallejo @liggitt i was able to test it using the docker hub private registry
|
@cblecker Can you please bless the change in the hack/ directory? @liggitt @smarterclayton @ncdc - This one is ready to merge. i'll get the cherry pick ready Thanks, |
/kind bug |
/sig node |
Looks like this is just correcting the secret type so that they keyring does what it is supposed to do when parsing. /lgtm |
/lgtm too |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, dims, ncdc Associated issue: #57427 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
[MILESTONENOTIFIER] Milestone Pull Request Needs Approval @adohe @deads2k @dims @fabianofranz @juanvallejo @liggitt @kubernetes/sig-node-misc Action required: This pull request must have the Pull Request Labels
|
@deads2k yep! line 94 and 96 in pkg/kubectl/secret_for_docker_registry.go are what fixes the problem. |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
…pstream-release-1.9 Automatic merge from submit-queue. Automated cherry pick of #57463: Fix problem accessing private docker registries Cherry pick of #57463 on release-1.9. #57463: Fix problem accessing private docker registries ```release-note Fixes issue creating docker secrets with kubectl 1.9 for accessing docker private registries. ```
Commit found in the "release-1.9" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
What this PR does / why we need it:
In 027c8b9, we added code to
move from .dockercfg to config.json file. But we forgot to use
the right secret type and the key to store the base64'ed creds
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #57427 #57273
Special notes for your reviewer:
Release note: