kubeletk8s.io/kubelet/pkg/apis Index | Files | Directories

package apis

import "k8s.io/kubelet/pkg/apis"

Index

Constants

const (
	// LabelOS is a label to indicate the operating system of the node.
	// The OS labels are promoted to GA in 1.14. kubelet applies GA labels and stop applying the beta OS labels in Kubernetes 1.19.
	LabelOS = "beta.kubernetes.io/os"
	// LabelArch is a label to indicate the architecture of the node.
	// The Arch labels are promoted to GA in 1.14. kubelet applies GA labels and stop applying the beta Arch labels in Kubernetes 1.19.
	LabelArch = "beta.kubernetes.io/arch"
)

Functions

func IsKubeletLabel

func IsKubeletLabel(key string) bool

IsKubeletLabel returns true if the label key is one that kubelets are allowed to set on their own Node object. This checks if the key is in the KubeletLabels() list, or has a namespace in the KubeletLabelNamespaces() list.

func KubeletLabelNamespaces

func KubeletLabelNamespaces() []string

KubeletLabelNamespaces returns the list of label key namespaces kubelets are allowed to set on their own Node objects

func KubeletLabels

func KubeletLabels() []string

KubeletLabels returns the list of label keys kubelets are allowed to set on their own Node objects

Source Files

well_known_labels.go

Directories

PathSynopsis
pkg/apis/credentialprovider
pkg/apis/credentialprovider/install
pkg/apis/credentialprovider/v1
pkg/apis/credentialprovider/v1alpha1
pkg/apis/credentialprovider/v1beta1
pkg/apis/deviceplugin
pkg/apis/deviceplugin/v1alpha
pkg/apis/deviceplugin/v1beta1
pkg/apis/dra
pkg/apis/dra/v1alpha4Package v1alpha4 contains a legacy implementation of the DRA gRPC interface.
pkg/apis/dra/v1beta1
pkg/apis/pluginregistration
pkg/apis/pluginregistration/v1
pkg/apis/pluginregistration/v1alpha1
pkg/apis/pluginregistration/v1beta1
pkg/apis/podresources
pkg/apis/podresources/v1
pkg/apis/podresources/v1alpha1
pkg/apis/stats
pkg/apis/stats/v1alpha1
Version
v0.32.2 (latest)
Published
Feb 13, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 months ago

Tools for package owners.