(labelKeys ...string)
| 58 | } |
| 59 | |
| 60 | func (c *Client) ListNodesWithLabelKeys(labelKeys ...string) ([]kcore.Node, error) { |
| 61 | opts := &kmeta.ListOptions{ |
| 62 | LabelSelector: LabelExistsSelector(labelKeys...), |
| 63 | } |
| 64 | return c.ListNodes(opts) |
| 65 | } |
| 66 | |
| 67 | func HowManyPodsFitOnNode(podSpec kcore.PodSpec, node kcore.Node, cpuReserved resource.Quantity, memoryReserved resource.Quantity) int64 { |
| 68 | cpuQty := node.Status.Allocatable[v1.ResourceCPU] |
nothing calls this directly
no test coverage detected