pods

package
v0.0.0-...-710bd87 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineWithNetworks

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

DefineWithNetworks Defines a pod with networks

func ExecCommand

func ExecCommand(cs *client.APISet, pod corev1.Pod, command []string) (bytes.Buffer, error)

ExecCommand runs command in the pod and returns buffer output

func RedefineWithCommand

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

RedefineWithCommand updates the pod defintion with a different command

func RedefineWithRestartPolicy

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

RedefineWithRestartPolicy updates the pod defintion with a restart policy

func RedifineWithSpecificNode

func RedifineWithSpecificNode(pod *corev1.Pod, nodeName string) *corev1.Pod

RedifineWithSpecificNode redifines a pod with a specific node

Types

This section is empty.

Jump to

Keyboard shortcuts

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