Skip to content

Commit

Permalink
Merge pull request #1535 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1534-to-release-1.24

[release-1.24] fix: only last subnet is set in account ACL created by driver
  • Loading branch information
andyzhangx authored Aug 5, 2024
2 parents edb9683 + 295ad9d commit 6cd6375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blob/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
subnet = strings.TrimSpace(subnet)
vnetResourceID := d.getSubnetResourceID(vnetResourceGroup, vnetName, subnet)
klog.V(2).Infof("set vnetResourceID(%s) for NFS protocol", vnetResourceID)
vnetResourceIDs = []string{vnetResourceID}
vnetResourceIDs = append(vnetResourceIDs, vnetResourceID)
if err := d.updateSubnetServiceEndpoints(ctx, vnetResourceGroup, vnetName, subnet); err != nil {
return nil, status.Errorf(codes.Internal, "update service endpoints failed with error: %v", err)
}
Expand Down

0 comments on commit 6cd6375

Please sign in to comment.