Skip to content

Commit 33f1f44

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
feat: support Provisioned v2 Azure File share sku
rvert
1 parent bd4a698 commit 33f1f44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/azurefile/controllerserver.go

+5
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,11 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
401401
}
402402
}
403403

404+
// use v2 account kind for v2 sku
405+
if strings.Contains(strings.ToLower(sku), "v2") {
406+
accountKind = string(armstorage.KindFileStorage)
407+
}
408+
404409
// replace pv/pvc name namespace metadata in fileShareName
405410
validFileShareName := replaceWithMap(fileShareName, fileShareNameReplaceMap)
406411
if validFileShareName == "" {

0 commit comments

Comments
 (0)