Skip to content

Commit

Permalink
azure: load essiantial variables from enviroment
Browse files Browse the repository at this point in the history
to allow authentication from pkg

Signed-off-by: Snir Sheriber <[email protected]>
  • Loading branch information
snir911 authored and bpradipt committed Apr 17, 2023
1 parent 4d6f420 commit d520023
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/adaptor/cloud/azure/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ func (_ *Manager) LoadEnv() {
cloud.DefaultToEnv(&azurecfg.ClientId, "AZURE_CLIENT_ID", "")
cloud.DefaultToEnv(&azurecfg.ClientSecret, "AZURE_CLIENT_SECRET", "")
cloud.DefaultToEnv(&azurecfg.TenantId, "AZURE_TENANT_ID", "")

cloud.DefaultToEnv(&azurecfg.SubscriptionId, "AZURE_SUBSCRIPTION_ID", "")
cloud.DefaultToEnv(&azurecfg.Region, "AZURE_REGION", "")
}

func (_ *Manager) NewProvider() (cloud.Provider, error) {
Expand Down

0 comments on commit d520023

Please sign in to comment.