ceph: remove obsolete NodeUsage type

The node usage was used for the obsolete mon selection algorithm, which
was replaced long ago with placement via canary pods.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2020-12-04 16:02:25 -07:00
1 parent 744e18c3bc
commit 6a00b4d296
1 file changed
-11
-11
View File
@@ -21,17 +21,6 @@ import (
v1 "k8s.io/api/core/v1"
)
// NodeUsage is a mapping between a Node and computed metadata about the node
// that is used in monitor pod scheduling.
type NodeUsage struct {
Node *v1.Node
// The number of monitor pods assigned to the node
MonCount int
// The node is available for scheduling monitor pods. This is equivalent to
// evaluating k8sutil.ValidNode(node, cephv1.GetMonPlacement(c.spec.Placement))
MonValid bool
}
func getNodeInfoFromNode(n v1.Node) (*MonScheduleInfo, error) {
nr := &MonScheduleInfo{
Name: n.Name,