kubeletk8s.io/kubelet/pkg/types Index | Files

package types

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

Index

Constants

const (
	KubernetesPodNameLabel       = "io.kubernetes.pod.name"
	KubernetesPodNamespaceLabel  = "io.kubernetes.pod.namespace"
	KubernetesPodUIDLabel        = "io.kubernetes.pod.uid"
	KubernetesContainerNameLabel = "io.kubernetes.container.name"
)

Label keys for labels used in this package.

const (
	// PodInfraContainerName is the KubernetesPodNameLabel value for infra
	// containers.
	PodInfraContainerName = "POD"
)

Label value constants

Functions

func GetContainerName

func GetContainerName(labels map[string]string) string

GetContainerName returns the value of the KubernetesContainerNameLabel.

func GetPodName

func GetPodName(labels map[string]string) string

GetPodName returns the value of the KubernetesPodNameLabel.

func GetPodNamespace

func GetPodNamespace(labels map[string]string) string

GetPodNamespace returns the value of the KubernetesPodNamespaceLabel.

func GetPodUID

func GetPodUID(labels map[string]string) string

GetPodUID returns the value of the KubernetesPodUIDLabel.

Source Files

labels.go

Version
v0.33.3 (latest)
Published
Jul 16, 2025
Platform
js/wasm
Last checked
1 week ago

Tools for package owners.