@@ -266,7 +266,7 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
266266 return & csi.NodeStageVolumeResponse {}, nil
267267 }
268268
269- var serverAddress , storageEndpointSuffix , protocol , ephemeralVolMountOptions string
269+ var serverAddress , storageEndpointSuffix , protocol , ephemeralVolMountOptions , blobStorageAccountType string
270270 var ephemeralVol , isHnsEnabled bool
271271
272272 containerNameReplaceMap := map [string ]string {}
@@ -310,6 +310,8 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
310310 }
311311 case fsGroupChangePolicyField :
312312 fsGroupChangePolicy = v
313+ case blobStorageAccountTypeField :
314+ blobStorageAccountType = v
313315 }
314316 }
315317
@@ -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