package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

ConvertToTimestamp takes a string, parses it using the RFC3339NanoLenient layout, and converts it to a Timestamp object.
GetPodSource returns the source of the pod based on the annotation.
GetValidatedSources gets all validated sources from the specified sources.
HasRestartableInitContainer returns true if the pod has any restartable init container.
IsCriticalPod returns true if pod's priority is greater than or equal to SystemCriticalPriority.
IsCriticalPodBasedOnPriority checks if the given pod is a critical pod based on priority resolved from pod Spec.
IsMirrorPod returns true if the passed Pod is a Mirror Pod.
IsNodeCriticalPod checks if the given pod is a system-node-critical.
IsStaticPod returns true if the pod is a static pod.
NewTimestamp returns a Timestamp object using the current time.
PodConditionByKubelet returns if the pod condition type is owned by kubelet.
PodConditionSharedByKubelet returns if the pod condition type is shared by kubelet.
Preemptable returns true if preemptor pod can preempt preemptee pod if preemptee is not critical or if preemptor's priority is greater than preemptee's priority.
SortInitContainerStatuses ensures that statuses are in the order that their init container appears in the pod spec.
SortStatusesOfInitContainers returns the statuses of InitContainers of pod p, in the order that they appear in its spec.

# Constants

ADD signifies pods that are new to this source.
AllSource identifies updates from all sources.
ApiserverSource identifies updates from Kubernetes API Server.
Annotation keys for annotations used in this package.
Annotation keys for annotations used in this package.
Annotation keys for annotations used in this package.
Annotation keys for annotations used in this package.
DELETE signifies pods that are gracefully deleted from this source.
Filesource idenitified updates from a file.
HTTPSource identifies updates from querying a web page.
User visible keys for managing node allocatable enforcement on the node.
User visible keys for managing node allocatable enforcement on the node.
SwapBehavior types.
NamespaceDefault is a string representing the default namespace.
User visible keys for managing node allocatable enforcement on the node.
User visible keys for managing node allocatable enforcement on the node.
SwapBehavior types.
RECONCILE signifies pods that have unexpected status in this source, kubelet should reconcile status with this source.
REMOVE signifies pods that have been removed from this source.
ResolvConfDefault is the system default DNS resolver configuration.
SET is the current pod configuration.
SyncPodCreate is when the pod is created from source.
SyncPodKill is when the pod should have no running containers.
SyncPodSync is when the pod is synced to ensure desired state.
SyncPodUpdate is when the pod is updated from source.
User visible keys for managing node allocatable enforcement on the node.
User visible keys for managing node allocatable enforcement on the node.
UPDATE signifies pods have been updated in this source.

# Variables

PodConditionsByKubelet is the list of pod conditions owned by kubelet.

# Structs

PodUpdate defines an operation sent on the channel.
Reservation represents reserved resources for non-pod components.
Timestamp wraps around time.Time and offers utilities to format and parse the time using RFC3339Nano.

# Interfaces

HTTPDoer encapsulates http.Do functionality.

# Type aliases

MirrorPodUID is a pod UID for a mirror pod.
PodOperation defines what changes will be made on a pod configuration.
ResolvedPodUID is a pod UID which has been translated/resolved to the representation known to kubelets.
SortedContainerStatuses is a type to help sort container statuses based on container names.
SyncPodType classifies pod updates, eg: create, update.