Skip to content

Commit

Permalink
feat: support V2 storage account
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Oct 19, 2024
1 parent f2b16ef commit 85d720d
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 @@ -414,6 +414,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 85d720d

Please sign in to comment.