Skip to content

Commit 735e748

Browse files
authored
Merge pull request #2238 from k8s-infra-cherrypick-robot/cherry-pick-2237-to-release-1.27
[release-1.27] Revert "fix: respect secretName during volume creation"
2 parents a01d9e9 + 66f6367 commit 735e748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/blob/controllerserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
443443
}
444444

445445
accountOptions.Name = accountName
446-
if len(secrets) == 0 && (useDataPlaneAPI || secretName != "") {
446+
if len(secrets) == 0 && useDataPlaneAPI {
447447
if accountKey == "" {
448448
if accountName, accountKey, err = d.GetStorageAccesskey(ctx, accountOptions, secrets, secretName, secretNamespace); err != nil {
449449
return nil, status.Errorf(codes.Internal, "failed to GetStorageAccesskey on account(%s) rg(%s), error: %v", accountOptions.Name, accountOptions.ResourceGroup, err)

0 commit comments

Comments
 (0)