Skip to content

Commit ef8322c

Browse files
authored
Merge pull request #2142 from kubernetes-sigs/upgrade-sa-api-version
feat: support Provisioned v2 Azure File share sku
2 parents 7894dda + eba1c7d commit ef8322c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/azurefile/controllerserver.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
404404
}
405405
}
406406

407+
// use v2 account kind for v2 sku
408+
if strings.Contains(strings.ToLower(sku), "v2") {
409+
accountKind = string(armstorage.KindFileStorage)
410+
}
411+
407412
// replace pv/pvc name namespace metadata in fileShareName
408413
validFileShareName := replaceWithMap(fileShareName, fileShareNameReplaceMap)
409414
if validFileShareName == "" {

0 commit comments

Comments
 (0)