Documentation ¶
Index ¶
- func GetPod(namespace string, draftLabelKey, name, annotationKey, buildID string, ...) (*v1.Pod, error)
- func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)
- func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition
- func IsPodReady(pod *v1.Pod) bool
- func IsPodReadyConditionTrue(status v1.PodStatus) bool
- func ListPodNames(namespace string, labels, annotations map[string]string, ...) ([]string, error)
- func ListPods(namespace string, labels, annotations map[string]string, ...) ([]v1.Pod, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPod ¶ added in v0.12.0
func GetPod(namespace string, draftLabelKey, name, annotationKey, buildID string, clientset kubernetes.Interface) (*v1.Pod, error)
GetPod waits for a pod with the specified label to be ready, then returns it if no pod is ready, it checks every second until a pod is ready until timeout is reached
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 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 IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
func ListPodNames ¶ added in v0.14.0
func ListPodNames(namespace string, labels, annotations map[string]string, clientset kubernetes.Interface) ([]string, error)
ListPodNames returns pod names from given namespace that match labels and
annotations given
Types ¶
This section is empty.