pod

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 14 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 GetDefinition added in v1.1.0

func GetDefinition() *corev1.Pod

func GetLog

func GetLog(cs *testclient.ClientSet, p *corev1.Pod, s time.Duration) (string, error)

GetLog connects to a pod and fetches log

func RedefineAsPrivileged

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

RedefineAsPrivileged updates the pod to be privileged

func RedefineWithCommand

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

RedefineWithCommand updates the pod definition with a different command

func RedefineWithHostNetwork

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

RedefineWithHostNetwork updates the pod definition Spec.HostNetwork to true

func RedefineWithMount added in v1.1.0

func RedefineWithMount(pod *corev1.Pod, volume corev1.Volume, mount corev1.VolumeMount) *corev1.Pod

RedefineWithMount updates the pod definition with a volume and volume mount

func RedefineWithNodeSelector

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

RedefineWithNodeSelector updates the pod definition with a node selector

func RedefineWithRestartPolicy

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

RedefineWithRestartPolicy updates the pod definition 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