pod

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 13 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 RedefineWithCapabilities added in v1.3.0

func RedefineWithCapabilities(pod *corev1.Pod, capabilitiesList []corev1.Capability) *corev1.Pod

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