package
1.12.0-alpha.0
Repository: https://github.com/fabianvf/kubernetes.git
Documentation: pkg.go.dev
# Functions
GetControllerRef gets pod's owner controller reference from a pod object.
GetNamespacesFromPodAffinityTerm returns a set of names according to the namespaces indicated in podAffinityTerm.
GetNonzeroRequests returns the default resource request if none is found or what is provided on the request.
NodesHaveSameTopologyKey checks if nodeA and nodeB have same label value with given topologyKey as label key.
PodMatchesTermsNamespaceAndSelector returns true if the given <pod> matches the namespace and selector defined by <affinityPod>`s <term>.
# Structs
Topologies contains topologies information of nodes.