k3s/pkg/credentialprovider
Kubernetes Submit Queue d62fca231e Merge pull request #40142 from colemickens/colemickens-acr-login-server
Automatic merge from submit-queue (batch tested with PRs 37055, 40142)

azure: azure container registry: fix login server

**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 be `colemicktest-microsoft.azurecr.io`. This code was concating to form `colemicktest.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**:

```release-note
azure: fix Azure Container Registry integration
```
2017-01-25 00:40:02 -08:00
..
aws AWS: trust region if found from AWS metadata 2017-01-18 09:17:55 -05:00
azure azure: acr fix login server 2017-01-19 05:08:16 -08:00
gcp Merge pull request #36516 from apelisse/owners-pkg-credentialprovider 2017-01-13 14:34:02 -08:00
BUILD
OWNERS
config.go
config_test.go
doc.go
keyring.go
keyring_test.go
plugins.go
provider.go
provider_test.go