Documentation
¶
Index ¶
- Constants
- func ExecCommandOnPod(c *kubernetes.Clientset, pod *corev1.Pod, command []string) ([]byte, error)
- func GetContainerIDByName(pod *corev1.Pod, containerName string) (string, error)
- func GetLogs(c *kubernetes.Clientset, pod *corev1.Pod) (string, error)
- func GetPerformanceOperatorPod() (*corev1.Pod, error)
- func GetTestPod() *corev1.Pod
- func WaitForCondition(pod *corev1.Pod, conditionType corev1.PodConditionType, ...) error
- func WaitForDeletion(pod *corev1.Pod, timeout time.Duration) error
- func WaitForPhase(pod *corev1.Pod, phase corev1.PodPhase, timeout time.Duration) error
- func WaitForPodOutput(c *kubernetes.Clientset, pod *corev1.Pod, command []string) ([]byte, error)
- func WaitForPredicate(pod *corev1.Pod, timeout time.Duration, ...) error
Constants ¶
View Source
const DefaultDeletionTimeout = 120
DefaultDeletionTimeout contains the default pod deletion timeout in seconds
Variables ¶
This section is empty.
Functions ¶
func ExecCommandOnPod ¶
ExecCommandOnPod runs command in the pod and returns buffer output
func GetContainerIDByName ¶
GetContainerIDByName returns container ID under the pod by the container name
func GetPerformanceOperatorPod ¶
GetPerformanceOperatorPod returns the pod running the Performance Profile Operator
func WaitForCondition ¶
func WaitForCondition(pod *corev1.Pod, conditionType corev1.PodConditionType, conditionStatus corev1.ConditionStatus, timeout time.Duration) error
WaitForCondition waits until the pod will have specified condition type with the expected status
func WaitForDeletion ¶
WaitForDeletion waits until the pod will be removed from the cluster
func WaitForPhase ¶
WaitForPhase waits until the pod will have specified phase
func WaitForPodOutput ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.