Skip to content

Commit 101b731

Browse files
committed
subtract one from maxVolumes for root partition
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
1 parent a2bc65c commit 101b731

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/csi/blockstorage/nodeserver.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ func (ns *nodeServer) NodeGetInfo(ctx context.Context, _ *csi.NodeGetInfoRequest
320320
klog.V(4).Infof("Determined %d PCIe ports occupied by non virtio block devices", emptyPCIeRootPorts)
321321
klog.V(4).Infof("Determined node to support %d volumes", maxVolumesPerNode)
322322

323+
// always subtract one for every SKE node, because they always have a root partition
324+
maxVolumesPerNode -= 1
325+
323326
nodeInfo := &csi.NodeGetInfoResponse{
324327
NodeId: nodeID,
325328
MaxVolumesPerNode: maxVolumesPerNode,

0 commit comments

Comments
 (0)