package types
import "k8s.io/kubelet/pkg/types"
Index ¶
- Constants
- func GetContainerName(labels map[string]string) string
- func GetPodName(labels map[string]string) string
- func GetPodNamespace(labels map[string]string) string
- func GetPodUID(labels map[string]string) string
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 ¶
GetContainerName returns the value of the KubernetesContainerNameLabel.
func GetPodName ¶
GetPodName returns the value of the KubernetesPodNameLabel.
func GetPodNamespace ¶
GetPodNamespace returns the value of the KubernetesPodNamespaceLabel.
func GetPodUID ¶
GetPodUID returns the value of the KubernetesPodUIDLabel.
Source Files ¶
labels.go
- Version
- v0.32.2 (latest)
- Published
- Feb 13, 2025
- Platform
- linux/amd64
- Last checked
- 2 months ago –
Tools for package owners.