pod

package
v0.0.0-...-189e0fb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineWithHostNetwork

func DefineWithHostNetwork(nodeName string) *corev1.Pod

func DefineWithNetworks

func DefineWithNetworks(networks []string) *corev1.Pod

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

func RedefineAsPrivileged(pod *corev1.Pod) *corev1.Pod

RedefineAsPrivileged uppdates the pod to be privileged

func RedefineWithCommand

func RedefineWithCommand(pod *corev1.Pod, command []string, args []string) *corev1.Pod

RedefineWithCommand updates the pod defintion with a different command

func RedefineWithHostNetwork

func RedefineWithHostNetwork(pod *corev1.Pod) *corev1.Pod

RedefineWithHostNetwork uppdates the pod definition Spec.HostNetwork to true

func RedefineWithNodeSelector

func RedefineWithNodeSelector(pod *corev1.Pod, node string) *corev1.Pod

RedefineWithNodeSelector uppdates the pod definition with a node selector

func RedefineWithRestartPolicy

func RedefineWithRestartPolicy(pod *corev1.Pod, restartPolicy corev1.RestartPolicy) *corev1.Pod

RedefineWithRestartPolicy updates the pod defintion with a restart policy

Types

This section is empty.

Jump to

Keyboard shortcuts

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