Skip to content

Commit

Permalink
Merge pull request #1023 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1022-to-release-4.14

[release-4.14] OCPBUGS-32450: azure-path-fix: support auth via account key (without clientID)
  • Loading branch information
openshift-merge-bot[bot] committed Apr 21, 2024
2 parents d139e6b + 0726e81 commit 367570e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/move-blobs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ func validate(opts *configOpts) error {
if len(opts.clientSecret) == 0 && len(opts.federatedTokenFile) == 0 && len(opts.accountKey) == 0 {
return fmt.Errorf("One of AZURE_CLIENT_SECRET or AZURE_FEDERATED_TOKEN_FILE or AZURE_ACCOUNTKEY is required for authentication")
}
if len(opts.clientID) == 0 {
if len(opts.clientID) == 0 && len(opts.accountKey) == 0 {
return fmt.Errorf("AZURE_CLIENT_ID is required for authentication")
}
if len(opts.tenantID) == 0 {
if len(opts.tenantID) == 0 && len(opts.accountKey) == 0 {
return fmt.Errorf("AZURE_TENANT_ID is required for authentication")
}
if len(opts.storageAccountName) == 0 {
Expand Down

0 comments on commit 367570e

Please sign in to comment.