pod

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePod

func CreatePod(c clientset.Interface, ns string, objectMeta metav1.ObjectMeta, spec apiv1.PodSpec) (pods *apiv1.Pod, err error)

func DeletePod

func DeletePod(c clientset.Interface, ns, podName string) (err error)

func GetPod

func GetPod(c clientset.Interface, ns, podName string) (pod *apiv1.Pod, err error)

func ListPods

func ListPods(c clientset.Interface, ns string) (pods *apiv1.PodList, err error)

func PodsCreated added in v0.6.0

func PodsCreated(c clientset.Interface, ns, name string, replicas int32) (*apiv1.PodList, error)

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 VerifyPodsRunning(c clientset.Interface, ns, podName string, wantName bool, replicas int32) error

func WaitForPodRunningInNamespace added in v0.6.0

func WaitForPodRunningInNamespace(c clientset.Interface, pod *apiv1.Pod) error

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.

func WaitTimeoutForPodRunning

func WaitTimeoutForPodRunning(c clientset.Interface, podName, ns string, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL