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.
DropDisabledPodFields removes disabled fields from the pod metadata and spec.
DropDisabledTemplateFields removes disabled fields from the pod template metadata and spec.
GetPodCondition extracts the provided condition from the given status and returns that.
GetPodReadyCondition extracts the pod ready condition from the given status and returns that.
GetValidationOptionsFromPodSpecAndMeta returns validation options based on pod specs and metadata.
GetValidationOptionsFromPodTemplate will return pod validation options for specified template.
IsPodReady returns true if a pod is ready; false otherwise.
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
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.