Skip to content

Commit

Permalink
feat: support Provisioned v2 Azure File share sku
Browse files Browse the repository at this point in the history
rvert
  • Loading branch information
andyzhangx committed Jan 18, 2025
1 parent a277f7a commit eba1c7d
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit eba1c7d

Please sign in to comment.