selector

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesNodeSelectorCoversAnother

func DoesNodeSelectorCoversAnother(s, t *corev1.NodeSelector) bool

DoesNodeSelectorCoversAnother determines if the first node selector covers (or equals to) the second in pure logic. Important for testing when generating pod's affinity.

func DoesNodeSelectorTermCoversAnother

func DoesNodeSelectorTermCoversAnother(a, b *corev1.NodeSelectorTerm) bool

DoesNodeSelectorTermCoversAnother determines if the first node selector term covers (or equals to) the second in pure logic.

func IsFieldsMatchesRequirement

func IsFieldsMatchesRequirement(obj interface{}, req *corev1.NodeSelectorRequirement) (bool, error)

func IsLabelsMatchesRequirement

func IsLabelsMatchesRequirement(labels map[string]string, req *corev1.NodeSelectorRequirement) (bool, error)

func IsNodeMatches

func IsNodeMatches(node *corev1.Node, nodeSelector *corev1.NodeSelector) (bool, error)

func IsNodeMatchesTerm

func IsNodeMatchesTerm(node *corev1.Node, term *corev1.NodeSelectorTerm) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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