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, 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.28.7
Published
Feb 14, 2024
Platform
js/wasm
Imports
5 packages
Last checked
38 seconds ago

Tools for package owners.