Skip to content

Commit

Permalink
feat: support Provisioned v2 Azure File share sku
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Jan 17, 2025
1 parent a277f7a commit 3916543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/azurefile/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
}
}

// use v2 account kind for v2 sku
if strings.Contains(strings.ToLower(sku), "v2") {
accountKind = string(armstorage.KindFileStorage)
}

// replace pv/pvc name namespace metadata in fileShareName
validFileShareName := replaceWithMap(fileShareName, fileShareNameReplaceMap)
if validFileShareName == "" {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/dynamic_provisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
}

scParameters := map[string]string{
"skuName": "Standard_LRS",
"skuName": "StandardV2_LRS",
"secretNamespace": "kube-system",
}
if !isUsingInTreeVolumePlugin {
Expand Down

0 comments on commit 3916543

Please sign in to comment.