Skip to content

Commit

Permalink
node driver: remove maxVolumesPerNode constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Mar 6, 2024
1 parent 96b5084 commit ae557cb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ import (
"k8s.io/klog/v2"
)

const (
// TODO: replace it to get from Exoscale account resource limit.
maxVolumesPerNode = 5
)

type nodeService struct {
nodeID v3.UUID
zoneName v3.ZoneName
Expand Down Expand Up @@ -414,8 +409,6 @@ func (d *nodeService) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoReque
return &csi.NodeGetInfoResponse{
// Store the zone and the instanceID to let the CSI controller know the zone of the node.
NodeId: exoscaleID(d.zoneName, d.nodeID),
// TODO Will depend on Exoscale account limit, (remove const)
MaxVolumesPerNode: maxVolumesPerNode,
// newZoneTopology returns always len(1).
AccessibleTopology: newZoneTopology(d.zoneName)[0],
}, nil
Expand Down

0 comments on commit ae557cb

Please sign in to comment.