Skip to content

Commit

Permalink
fix: not listing all accounts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored and k8s-infra-cherrypick-robot committed Jul 10, 2024
1 parent 1e7cb8c commit 26df0cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/provider/azure_storageaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func (az *Cloud) getStorageAccounts(ctx context.Context, accountOptions *Account
}

accounts = append(accounts, accountWithLocation{Name: *acct.Name, StorageType: string((*acct.Sku).Name), Location: *acct.Location})
if !accountOptions.PickRandomMatchingAccount {

Check failure on line 118 in pkg/provider/azure_storageaccount.go

View workflow job for this annotation

GitHub Actions / Lint

accountOptions.PickRandomMatchingAccount undefined (type *AccountOptions has no field or method PickRandomMatchingAccount)) (typecheck)

Check failure on line 118 in pkg/provider/azure_storageaccount.go

View workflow job for this annotation

GitHub Actions / Lint

accountOptions.PickRandomMatchingAccount undefined (type *AccountOptions has no field or method PickRandomMatchingAccount)) (typecheck)

Check failure on line 118 in pkg/provider/azure_storageaccount.go

View workflow job for this annotation

GitHub Actions / Lint

accountOptions.PickRandomMatchingAccount undefined (type *AccountOptions has no field or method PickRandomMatchingAccount)) (typecheck)

Check failure on line 118 in pkg/provider/azure_storageaccount.go

View workflow job for this annotation

GitHub Actions / Lint

accountOptions.PickRandomMatchingAccount undefined (type *AccountOptions has no field or method PickRandomMatchingAccount)) (typecheck)

Check failure on line 118 in pkg/provider/azure_storageaccount.go

View workflow job for this annotation

GitHub Actions / Lint

accountOptions.PickRandomMatchingAccount undefined (type *AccountOptions has no field or method PickRandomMatchingAccount)) (typecheck)
// return the first matching account if it's not required to pick a random one
break
}
}
}
return accounts, nil
Expand Down

0 comments on commit 26df0cb

Please sign in to comment.