nodetopology

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableResourceListFromNodeResourceTopology

func AvailableResourceListFromNodeResourceTopology(nodeTopo *v1alpha1.NodeResourceTopology) map[string]v1.ResourceList

func CmpAvailableCPUs added in v0.4.2

func CmpAvailableCPUs(expected, got map[string]v1.ResourceList) (string, int, bool)

func CmpAvailableResources

func CmpAvailableResources(expected, got map[string]v1.ResourceList) (string, string, int, bool)

func CmpResourceList

func CmpResourceList(expected, got v1.ResourceList) (string, int, bool)

func GetNodeTopology

func GetNodeTopology(topologyClient *topologyclientset.Clientset, nodeName string) *v1alpha1.NodeResourceTopology

func IsValidCostList

func IsValidCostList(zoneName string, costs v1alpha1.CostList) bool

func IsValidNodeTopology

func IsValidNodeTopology(nodeTopology *v1alpha1.NodeResourceTopology, tmPolicy string) bool

func IsValidResourceList

func IsValidResourceList(zoneName string, resources v1alpha1.ResourceInfoList) bool

func LessAvailableResources

func LessAvailableResources(expected, got map[string]v1.ResourceList) (string, string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL