nodetopology

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PolicyAttr = "topologyManagerPolicy"
	ScopeAttr  = "topologyManagerScope"

	PolicyDefault = "none"      // TODO: learn somehow from k8s
	ScopeDefault  = "container" // TODO: learn somehow from k8s
)

Variables

This section is empty.

Functions

func AvailableResourceListFromNodeResourceTopology

func AvailableResourceListFromNodeResourceTopology(nodeTopo *v1alpha2.NodeResourceTopology) map[string]corev1.ResourceList

func CmpAvailableCPUs added in v0.4.2

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

func CmpAvailableResources

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

func CmpResourceList

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

func GetNodeTopology

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

func GetNodeTopologyWithResource added in v0.8.0

func GetNodeTopologyWithResource(topologyClient *topologyclientset.Clientset, nodeName, resName string) *v1alpha2.NodeResourceTopology

func IsValidCostList

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

func IsValidNodeTopology

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

func IsValidResourceList

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

func LessAvailableResources

func LessAvailableResources(expected, got map[string]corev1.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