Skip to content

Commit 14b648d

Browse files
committed
fixed golint issues.
1 parent 159e503 commit 14b648d

File tree

1 file changed

+5
-5
lines changed
  • staging/src/k8s.io/legacy-cloud-providers/azure/auth

1 file changed

+5
-5
lines changed

staging/src/k8s.io/legacy-cloud-providers/azure/auth/azure_auth.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
var (
3333
// ErrorNoAuth indicates that no credentials are provided.
3434
ErrorNoAuth = fmt.Errorf("no credentials provided for Azure cloud provider")
35-
// Tenenatid value for Azure Stack ADFS case.
35+
// ADFSIdentitySystem indicates value of tenantId for ADFS on Azure Stack.
3636
ADFSIdentitySystem = "ADFS"
3737
)
3838

@@ -64,11 +64,11 @@ type AzureAuthConfig struct {
6464

6565
// GetServicePrincipalToken creates a new service principal token based on the configuration
6666
func GetServicePrincipalToken(config *AzureAuthConfig, env *azure.Environment) (*adal.ServicePrincipalToken, error) {
67-
var tenantId string
67+
var tenantID string
6868
if strings.EqualFold(config.IdentitySystem, ADFSIdentitySystem) {
69-
tenantId = "adfs"
69+
tenantID = "adfs"
7070
} else {
71-
tenantId = config.TenantID
71+
tenantID = config.TenantID
7272
}
7373

7474
if config.UseManagedIdentityExtension {
@@ -89,7 +89,7 @@ func GetServicePrincipalToken(config *AzureAuthConfig, env *azure.Environment) (
8989
env.ServiceManagementEndpoint)
9090
}
9191

92-
oauthConfig, err := adal.NewOAuthConfig(env.ActiveDirectoryEndpoint, tenantId)
92+
oauthConfig, err := adal.NewOAuthConfig(env.ActiveDirectoryEndpoint, tenantID)
9393
if err != nil {
9494
return nil, fmt.Errorf("creating the OAuth config: %v", err)
9595
}

0 commit comments

Comments
 (0)