Documentation ¶
Index ¶
- func CreatePod(c clientset.Interface, ns string, objectMeta metav1.ObjectMeta, ...) (pods *apiv1.Pod, err error)
- func DeletePod(c clientset.Interface, ns, podName string) (err error)
- func GetPod(c clientset.Interface, ns, podName string) (pod *apiv1.Pod, err error)
- func ListPods(c clientset.Interface, ns string) (pods *apiv1.PodList, err error)
- func PodsCreated(c clientset.Interface, ns, name string, replicas int32) (*apiv1.PodList, error)
- func PodsCreatedByLabel(c clientset.Interface, ns, name string, replicas int32, label labels.Selector) (*apiv1.PodList, error)
- func VerifyPodsRunning(c clientset.Interface, ns, podName string, wantName bool, replicas int32) error
- func WaitForPodRunningInNamespace(c clientset.Interface, pod *apiv1.Pod) error
- func WaitTimeoutForPodRunning(c clientset.Interface, podName, ns string, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PodsCreated ¶ added in v0.6.0
PodsCreated returns a pod list matched by the given name.
func PodsCreatedByLabel ¶ added in v0.6.0
func PodsCreatedByLabel(c clientset.Interface, ns, name string, replicas int32, label labels.Selector) (*apiv1.PodList, error)
PodsCreatedByLabel returns a created pod list matched by the given label.
func VerifyPodsRunning ¶
func WaitForPodRunningInNamespace ¶ added in v0.6.0
WaitForPodRunningInNamespace waits default amount of time (podStartTimeout) for the specified pod to become running. Returns an error if timeout occurs first, or pod goes in to failed state.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.