Skip to content

Commit

Permalink
fix: NodeExpandVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmyagkov committed Oct 2, 2024
1 parent 2ad8e33 commit 62d8f3b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cloud/blockstore/tools/csi_driver/internal/driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1218,12 +1218,13 @@ func (s *nodeService) NodeExpandVolume(
"New blocks count is less than current blocks count value")
}

podId, err := s.parsePodId(req.VolumePath)
if err != nil {
return nil, err
}
//TODO: support resize with old endpointDir format
// podId, err := s.parsePodId(req.VolumePath)
// if err != nil {
// return nil, err
// }

endpointDir := s.getEndpointDir(podId, req.VolumeId)
endpointDir := s.getEndpointDir(s.nodeID, req.VolumeId)
unixSocketPath := filepath.Join(endpointDir, nbsSocketName)

listEndpointsResp, err := s.nbsClient.ListEndpoints(
Expand Down

0 comments on commit 62d8f3b

Please sign in to comment.