-
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
azure: azure container registry: fix login server #40142
azure: azure container registry: fix login server #40142
Conversation
063b6f5
to
15cf8ca
Compare
cc: @brendandburns |
Jenkins Kubemark GCE e2e failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins GCE e2e failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins CRI GCE Node e2e failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins verification failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins GCE Node e2e failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins unit/integration failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins kops AWS e2e failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins GCI GKE smoke e2e failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins GCE etcd3 e2e failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins Bazel Build failed for commit 063b6f504c9da4f25ea3de6c549aaa6e3bfe31b4. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
15cf8ca
to
1c72f2b
Compare
Jenkins GKE smoke e2e failed for commit 1c72f2b. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
Jenkins GCI GCE e2e failed for commit 1c72f2b. Full PR test history. cc @colemickens The magic incantation to run this job again is Instructions 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. I understand the commands that are listed here. |
[APPROVALNOTIFIER] Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
ping @erictune @liggitt for review. this should be a fast review. cc: @brendandburns again as well. |
} | ||
return cfg | ||
} | ||
|
||
func getLoginServer(registry containerregistry.Registry) string { | ||
return *(*registry.RegistryProperties).LoginServer |
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.
is there always a default? does it need a fallback to old behavior if it's empty?
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.
looks like the old default was wrong. should this return (string, error)
and error if LoginServer is unset?
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.
It is always set. There's lots of places that we deref without checking the value in here and the cloudprovider.
If you'd prefer, I can add an error
return value, error check and skip the registry if getLoginServer errors out. LMK if you want that change.
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 don't feel strongly if it's guaranteed to be set
/approve |
/lgtm |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 37055, 40142) |
@saad-ali can we get this cherry-picked for 1.5.x? Thanks. |
Commit found in the "release-1.5" 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:
Fixes the Azure Container Registry integration
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #n/a
Special notes for your reviewer:
Before this change, if I created an ACR with name
colemicktest
, then the login server would becolemicktest-microsoft.azurecr.io
. This code was concating to formcolemicktest.azurecr.io
which does not work.The fix is to reach into RegistryProperties and read out the login server domain name directly.
Also, this should eliminate that existed when ACR gets to sovereign clouds.
Release note: