Documentation ¶
Index ¶
- Constants
- func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
- func IsPodReady(pod *corev1.Pod) bool
- func IsPodReadyConditionTrue(status corev1.PodStatus) bool
- type Helper
Constants ¶
View Source
const ( // Poll is how often the API is polled in Wait operations by default Poll = time.Second * 2 // PodStartTimeout is the default amount of time to wait in pod start operations PodStartTimeout = time.Minute * 2 )
Variables ¶
This section is empty.
Functions ¶
func GetPodCondition ¶
func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.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 GetPodReadyCondition ¶
func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.
func IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
Types ¶
type Helper ¶
type Helper struct {
KubeClient kubernetes.Interface
}
Helper provides methods for common operations needed during tests.
func (*Helper) WaitForAllPodsRunningInNamespace ¶
WaitForAllPodsRunningInNamespace waits default amount of time (PodStartTimeout) for all pods in the specified namespace to become running.
Click to show internal directories.
Click to hide internal directories.