kubernetesk8s.io/kubernetes/pkg/api/node Index | Files

package node

import "k8s.io/kubernetes/pkg/api/node"

Index

Functions

func GetNodeLabelDeprecatedMessage

func GetNodeLabelDeprecatedMessage(key string) (string, bool)

GetNodeLabelDeprecatedMessage returns the message for the deprecated node label and a bool indicating if the label is deprecated.

func GetWarningsForNodeSelector

func GetWarningsForNodeSelector(nodeSelector *metav1.LabelSelector, fieldPath *field.Path) []string

GetWarningsForNodeSelector tests if any of the node selector requirements in the template is deprecated. If there are deprecated node selector requirements in either match expressions or match labels, a warning is returned.

func GetWarningsForNodeSelectorTerm

func GetWarningsForNodeSelectorTerm(nodeSelectorTerm api.NodeSelectorTerm, checkLabelValue bool, fieldPath *field.Path) []string

GetWarningsForNodeSelectorTerm checks match expressions of node selector term

func GetWarningsForRuntimeClass

func GetWarningsForRuntimeClass(rc *node.RuntimeClass) []string

Source Files

util.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
3 hours ago

Tools for package owners.