Skip to content

Commit

Permalink
Merge pull request #2142 from kubernetes-sigs/upgrade-sa-api-version
Browse files Browse the repository at this point in the history
feat: support Provisioned v2 Azure File share sku
  • Loading branch information
andyzhangx authored Jan 18, 2025
2 parents 7894dda + eba1c7d commit ef8322c
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 ef8322c

Please sign in to comment.