-
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
pull image from a cross-subscription azure container registry does not work by MSI #67892
Comments
By further investigation, I think we should implement LazyProvider for azure acrProvider:
Related code: kubernetes/pkg/kubelet/dockershim/helpers.go Line 345 in 3741f02
kubernetes/pkg/credentialprovider/provider.go Lines 43 to 48 in 3741f02
|
Update:
And in |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@andyzhangx -- is this still an issue? If not, let's |
@justaugustus it's still an issue, and currently it should be low priority, let's keep it |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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. |
/remove-lifecycle rotten |
@justaugustus: Reopened this issue. In response to this:
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. |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
PR(#66429) fixed pull image error from a cross-subscription azure container registry by service principal, while for MSI, this issue is not fixed.
Need to find a way how to fix this issue for MSI, related code is here:
kubernetes/pkg/credentialprovider/azure/azure_credentials.go
Lines 181 to 197 in 3741f02
Here the difficulty is
registryClient.List()
could not list all ACR since it's based on one subscriptionID:So if we could not get
loginServer
in a different subscription, how could we set theDockerConfigEntry
.What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
error msg would be like following when pull a repository from an ACR in another subscription:
Anything else we need to know?:
Environment:
kubectl version
): v.9 - v1.12uname -a
):/sig azure
/assign
The text was updated successfully, but these errors were encountered: