@@ -272,7 +272,7 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
272272 mc .ObserveOperationWithResult (isOperationSucceeded , VolumeID , volumeID )
273273 }()
274274
275- var serverAddress , storageEndpointSuffix , protocol , ephemeralVolMountOptions string
275+ var serverAddress , storageEndpointSuffix , protocol , ephemeralVolMountOptions , blobStorageAccountType string
276276 var ephemeralVol , isHnsEnabled bool
277277
278278 containerNameReplaceMap := map [string ]string {}
@@ -316,6 +316,8 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
316316 }
317317 case fsGroupChangePolicyField :
318318 fsGroupChangePolicy = v
319+ case blobStorageAccountTypeField :
320+ blobStorageAccountType = v
319321 }
320322 }
321323
@@ -435,6 +437,10 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
435437 targetPath , protocol , volumeID , mountFlags , mountOptions , volumeMountGroup , args , serverAddress )
436438
437439 authEnv = append (authEnv , "AZURE_STORAGE_ACCOUNT=" + accountName , "AZURE_STORAGE_BLOB_ENDPOINT=" + serverAddress )
440+ if blobStorageAccountType != "" {
441+ klog .V (2 ).Infof ("set AZURE_STORAGE_ACCOUNT_TYPE to %s" , blobStorageAccountType )
442+ authEnv = append (authEnv , "AZURE_STORAGE_ACCOUNT_TYPE=" + blobStorageAccountType )
443+ }
438444 if d .enableBlobMockMount {
439445 klog .Warningf ("NodeStageVolume: mock mount on volumeID(%s), this is only for TESTING!!!" , volumeID )
440446 if err := volumehelper .MakeDir (targetPath , os .FileMode (mountPermissions )); err != nil {
0 commit comments