var deprecatedNodeLabels … // GetNodeLabelDeprecatedMessage returns the message for the deprecated node label // and a bool indicating if the label is deprecated. func GetNodeLabelDeprecatedMessage(key string) (string, bool) { … } func GetWarningsForRuntimeClass(rc *node.RuntimeClass) []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 GetWarningsForNodeSelector(nodeSelector *metav1.LabelSelector, fieldPath *field.Path) []string { … } // GetWarningsForNodeSelectorTerm checks match expressions of node selector term func GetWarningsForNodeSelectorTerm(nodeSelectorTerm api.NodeSelectorTerm, fieldPath *field.Path) []string { … }