Skip to content

Commit

Permalink
Update node.go
Browse files Browse the repository at this point in the history
Added changes for RDM volumes
  • Loading branch information
Lakshmi3004 authored Jul 24, 2023
1 parent 79c4eeb commit 854361b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ func (s *service) NodeGetInfo(
} else {
// As per the csi spec the plugin MUST NOT set negative values to
// 'MaxVolumesPerNode' in the NodeGetInfoResponse response
log.Infof("Node label 'max-powermax-volumes-per-node' is not available. Retrieving the value from yaml file")
if s.opts.IsVsphereEnabled {
if s.opts.MaxVolumesPerNode <= 0 || s.opts.MaxVolumesPerNode > 60 {
log.Errorf("maxPowerMaxVolumesPerNode MUST NOT be greater than 60 or set to any negative value for RDM volumes. Setting to default value 60")
Expand All @@ -1088,7 +1089,6 @@ func (s *service) NodeGetInfo(
}
}
maxPowerMaxVolumesPerNode = s.opts.MaxVolumesPerNode
log.Infof("Node label 'max-powermax-volumes-per-node' is not available. Using value specified in value.yaml : '%v'", maxPowerMaxVolumesPerNode)
}
return &csi.NodeGetInfoResponse{
NodeId: s.opts.NodeName,
Expand Down

0 comments on commit 854361b

Please sign in to comment.