mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 17:46:57 +02:00
Merge pull request #2384 from polivbr/fix-azure-private-dns
[azure] remove dummy MSI_ENDPOINT
This commit is contained in:
commit
13951ff91e
@ -19,7 +19,6 @@ package azure
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/Azure/go-autorest/autorest/adal"
|
"github.com/Azure/go-autorest/autorest/adal"
|
||||||
@ -104,10 +103,6 @@ func getAccessToken(cfg config, environment azure.Environment) (*adal.ServicePri
|
|||||||
// Try to retrieve token with MSI.
|
// Try to retrieve token with MSI.
|
||||||
if cfg.UseManagedIdentityExtension {
|
if cfg.UseManagedIdentityExtension {
|
||||||
log.Info("Using managed identity extension to retrieve access token for Azure API.")
|
log.Info("Using managed identity extension to retrieve access token for Azure API.")
|
||||||
os.Setenv("MSI_ENDPOINT", "http://dummy")
|
|
||||||
defer func() {
|
|
||||||
os.Unsetenv("MSI_ENDPOINT")
|
|
||||||
}()
|
|
||||||
|
|
||||||
if cfg.UserAssignedIdentityID != "" {
|
if cfg.UserAssignedIdentityID != "" {
|
||||||
log.Infof("Resolving to user assigned identity, client id is %s.", cfg.UserAssignedIdentityID)
|
log.Infof("Resolving to user assigned identity, client id is %s.", cfg.UserAssignedIdentityID)
|
||||||
|
Loading…
Reference in New Issue
Block a user