Skip to content

Commit

Permalink
try with out setting authorizer resource
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
  • Loading branch information
jsturtevant committed Jul 15, 2024
1 parent b1d84be commit a29208f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions capz/gmsa/configuration/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/Azure/azure-sdk-for-go/profiles/latest/compute/mgmt/compute"
"github.com/Azure/azure-sdk-for-go/profiles/latest/network/mgmt/network"
"github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
. "github.com/onsi/gomega" //nolint:revive
"github.com/pkg/errors"
Expand Down Expand Up @@ -100,7 +99,6 @@ func configureGmsa(ctx context.Context, bootstrapClusterProxy framework.ClusterP
networkClient.Authorizer = authorizer

// override to use keyvault management endpoint
settings.Values[auth.Resource] = fmt.Sprintf("%s%s", "https://", azure.PublicCloud.KeyVaultDNSSuffix)
keyvaultAuthorizer, err := settings.GetAuthorizer()
Expect(err).NotTo(HaveOccurred())
keyVaultClient.Authorizer = keyvaultAuthorizer
Expand Down

0 comments on commit a29208f

Please sign in to comment.