Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Apr 23, 2023
1 parent 9380014 commit 976b588
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/provider/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,10 @@ func ParseConfig(configReader io.Reader) (*Config, error) {
if clientID := os.Getenv("AZURE_CLIENT_ID"); clientID != "" {
config.AADClientID = clientID
}
config.AADFederatedTokenFile = os.Getenv("AZURE_FEDERATED_TOKEN_FILE")
config.UseFederatedWorkloadIdentityExtension = config.AADFederatedTokenFile != ""
if federatedTokenFile := os.Getenv("AZURE_FEDERATED_TOKEN_FILE"); federatedTokenFile != "" {
config.AADFederatedTokenFile = federatedTokenFile
config.UseFederatedWorkloadIdentityExtension = true
}
return &config, nil
}

Expand Down

0 comments on commit 976b588

Please sign in to comment.