utils

package
v0.0.0-...-adba590 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterOutNodes

func FilterOutNodes(nodes []*apiv1.Node, nodesToFilterOut []*apiv1.Node) []*apiv1.Node

FilterOutNodes filters out nodesToFilterOut from nodes

func GetNodeGroupSizeMap

func GetNodeGroupSizeMap(cloudProvider cloudprovider.CloudProvider) map[string]int

GetNodeGroupSizeMap return a map of node group id and its target size

func PodSpecSemanticallyEqual

func PodSpecSemanticallyEqual(p1 apiv1.PodSpec, p2 apiv1.PodSpec) bool

PodSpecSemanticallyEqual returns true if two pod specs are similar after dropping the fields we don't care about Due to the generated suffixes, a strict DeepEquals check will fail and generate an equivalence group per pod which is undesirable. Projected volumes do not impact scheduling so we should ignore them

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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