Documentation ¶
Index ¶
- func DefineWithHostNetwork(nodeName string) *corev1.Pod
- func DefineWithNetworks(networks []string) *corev1.Pod
- func ExecCommand(cs *testclient.ClientSet, pod *corev1.Pod, command ...string) (string, string, error)
- func RedefineAsPrivileged(pod *corev1.Pod) *corev1.Pod
- func RedefineWithCommand(pod *corev1.Pod, command []string, args []string) *corev1.Pod
- func RedefineWithHostNetwork(pod *corev1.Pod) *corev1.Pod
- func RedefineWithNodeSelector(pod *corev1.Pod, node string) *corev1.Pod
- func RedefineWithRestartPolicy(pod *corev1.Pod, restartPolicy corev1.RestartPolicy) *corev1.Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefineWithHostNetwork ¶
func DefineWithNetworks ¶
func ExecCommand ¶
func ExecCommand(cs *testclient.ClientSet, pod *corev1.Pod, command ...string) (string, string, error)
ExecCommand runs command in the pod and returns buffer output
func RedefineAsPrivileged ¶
RedefineAsPrivileged uppdates the pod to be privileged
func RedefineWithCommand ¶
RedefineWithCommand updates the pod defintion with a different command
func RedefineWithHostNetwork ¶
RedefineWithHostNetwork uppdates the pod definition Spec.HostNetwork to true
func RedefineWithNodeSelector ¶
RedefineWithNodeSelector uppdates the pod definition with a node selector
func RedefineWithRestartPolicy ¶
RedefineWithRestartPolicy updates the pod defintion with a restart policy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.