Documentation
¶
Index ¶
- func AddPodSpecVolume(spec *v1.PodSpec, volume v1.Volume)
- func ContainerAddMounter(container *v1.Container, mounter v1.VolumeMount)
- func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)
- func GetPodConditionFromList(conditions []v1.PodCondition, conditionType v1.PodConditionType) (int, *v1.PodCondition)
- func GetPodInitializedCondition(status v1.PodStatus) *v1.PodCondition
- func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition
- func GetPodScheduledCondition(status v1.PodStatus) *v1.PodCondition
- func IsContainerReady(pod *v1.Pod, concainername string) bool
- func IsContainerRunning(pod *v1.Pod, concainername string) bool
- func IsContainerRunningAndReady(pod *v1.Pod, concainername string) bool
- func IsCreated(pod *v1.Pod) bool
- func IsFailed(pod *v1.Pod) bool
- func IsHealthy(pod *v1.Pod) bool
- func IsPodInitialized(pod *v1.Pod) bool
- func IsPodInitializedConditionTrue(status v1.PodStatus) bool
- func IsPodReady(pod *v1.Pod) bool
- func IsPodReadyConditionTrue(status v1.PodStatus) bool
- func IsPodScheduled(pod *v1.Pod) bool
- func IsPodScheduledConditionTrue(status v1.PodStatus) bool
- func IsRunning(pod *v1.Pod) bool
- func IsRunningAndReady(pod *v1.Pod) bool
- func IsTerminating(pod *v1.Pod) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerAddMounter ¶
func ContainerAddMounter(container *v1.Container, mounter v1.VolumeMount)
func GetPodCondition ¶
func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)
GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func GetPodConditionFromList ¶
func GetPodConditionFromList(conditions []v1.PodCondition, conditionType v1.PodConditionType) (int, *v1.PodCondition)
GetPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
func GetPodInitializedCondition ¶
func GetPodInitializedCondition(status v1.PodStatus) *v1.PodCondition
GetPodInitializedCondition get pod initialized condition
func GetPodReadyCondition ¶
func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition
GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.
func GetPodScheduledCondition ¶
func GetPodScheduledCondition(status v1.PodStatus) *v1.PodCondition
GetPodScheduledCondition get pod scheduled condition
func IsPodInitialized ¶
IsPodInitialized returns true if a pod is initialized; false otherwise.
func IsPodInitializedConditionTrue ¶
IsPodInitializedConditionTrue returns true if a pod is initialized; false otherwise.
func IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
func IsPodScheduled ¶
IsPodScheduled returns true if a pod is scheduled; false otherwise.
func IsPodScheduledConditionTrue ¶
IsPodScheduledConditionTrue returns true if a pod is scheduled; false otherwise.
func IsRunningAndReady ¶
isRunningAndReady returns true if pod is in the PodRunning Phase, if it has a condition of PodReady.
func IsTerminating ¶
isTerminating returns true if pod's DeletionTimestamp has been set
Types ¶
This section is empty.