Documentation ¶
Index ¶
- func DoesNodeSelectorCoversAnother(s, t *corev1.NodeSelector) bool
- func DoesNodeSelectorTermCoversAnother(a, b *corev1.NodeSelectorTerm) bool
- func IsFieldsMatchesRequirement(obj interface{}, req *corev1.NodeSelectorRequirement) (bool, error)
- func IsLabelsMatchesRequirement(labels map[string]string, req *corev1.NodeSelectorRequirement) (bool, error)
- func IsNodeMatches(node *corev1.Node, nodeSelector *corev1.NodeSelector) (bool, error)
- func IsNodeMatchesTerm(node *corev1.Node, term *corev1.NodeSelectorTerm) (bool, error)
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 IsNodeMatches ¶
func IsNodeMatchesTerm ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.