Documentation ¶
Index ¶
- Constants
- func AvailableResourceListFromNodeResourceTopology(nodeTopo *v1alpha2.NodeResourceTopology) map[string]corev1.ResourceList
- func CmpAvailableCPUs(expected, got map[string]corev1.ResourceList) (string, int, bool)
- func CmpAvailableResources(expected, got map[string]corev1.ResourceList) (string, string, int, bool)
- func CmpResourceList(expected, got corev1.ResourceList) (string, int, bool)
- func GetNodeTopology(topologyClient *topologyclientset.Clientset, nodeName string) *v1alpha2.NodeResourceTopology
- func GetNodeTopologyWithResource(topologyClient *topologyclientset.Clientset, nodeName, resName string) *v1alpha2.NodeResourceTopology
- func IsValidCostList(zoneName string, costs v1alpha2.CostList) bool
- func IsValidNodeTopology(nodeTopology *v1alpha2.NodeResourceTopology, tmPolicy, tmScope string) bool
- func IsValidResourceList(zoneName string, resources v1alpha2.ResourceInfoList) bool
- func LessAvailableResources(expected, got map[string]corev1.ResourceList) (string, string, bool)
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 CmpAvailableResources ¶
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 IsValidNodeTopology ¶
func IsValidNodeTopology(nodeTopology *v1alpha2.NodeResourceTopology, tmPolicy, tmScope string) bool
func IsValidResourceList ¶
func IsValidResourceList(zoneName string, resources v1alpha2.ResourceInfoList) bool
func LessAvailableResources ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.