package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
AllFeatureEnabledContainers returns a ContainerType mask which includes all container types except for the ones guarded by feature gate.
FindPort locates the container port for the given pod and portName.
GetContainersReadyCondition extracts the containers ready condition from the given status and returns that.
GetContainerStatus extracts the status of container "name" from "statuses".
GetExistingContainerStatus extracts the status of container "name" from "statuses", It also returns if "name" exists.
GetIndexOfContainerStatus gets the index of status of container "name" from "statuses", It returns (index, true) if "name" exists, else returns (0, false).
GetPodCondition extracts the provided condition from the given status and returns that.
GetPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition.
GetPodReadyCondition extracts the pod ready condition from the given status and returns that.
IsContainersReadyConditionTrue returns true if a pod is ready; false otherwise.
IsPodAvailable returns true if a pod is available; false otherwise.
IsPodPhaseTerminal returns true if the pod's phase is terminal.
IsPodReady returns true if a pod is ready; false otherwise.
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
IsPodTerminal returns true if a pod is terminal, all containers are stopped and cannot ever regress.
IsRestartableInitContainer returns true if the container has ContainerRestartPolicyAlways.
UpdatePodCondition updates existing pod condition or creates a new one.
VisitContainers invokes the visitor function with a pointer to every container spec in the given pod spec with type set in mask.
VisitPodConfigmapNames invokes the visitor function with the name of every configmap referenced by the pod spec.
VisitPodSecretNames invokes the visitor function with the name of every secret referenced by the pod spec.
# Constants
AllContainers specifies that all containers be visited.
Containers is for normal containers.
EphemeralContainers is for ephemeral containers.
InitContainers is for init containers.
# Type aliases
ContainerType signifies container type.
ContainerVisitor is called with each container spec, and returns true if visiting should continue.
Visitor is called with each object name, and returns true if visiting should continue.