package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
FromApiserverCache modifies <opts> so that the GET request will be served from apiserver cache instead of from etcd.
GetBootTime returns the time at which the machine was started, truncated to the nearest second.
GetContainerByIndex validates and extracts the container at index "idx" from "containers" with respect to "statuses".
GetNodenameForKernel gets hostname value to set in the hostname field (the nodename field of struct utsname) of the pod.
IsCgroup2UnifiedMode returns true if the cgroup v2 unified mode is enabled.
LocalEndpoint returns the full path to a unix socket at the given endpoint.
NewPodStartupLatencyTracker creates an instance of PodStartupLatencyTracker.
NormalizePath is a no-op for Linux for now.
SetNodeOwnerFunc helps construct a newLeasePostProcessFunc which sets a node OwnerReference to the given lease object.
# Interfaces
PodStartupLatencyTracker records key moments for startup latency calculation, e.g.