libpod

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKubernetesApiBlackhole

func AddKubernetesApiBlackhole(pods *v1.PodList, containerName string)

func DeleteKubernetesApiBlackhole

func DeleteKubernetesApiBlackhole(pods *v1.PodList, containerName string)

func GetRunningPodByLabel

func GetRunningPodByLabel(
	virtCli kubecli.KubevirtClient,
	label string,
	labelType string,
	namespace string,
	node string) (*k8sv1.Pod, error)

func RenderHostPathPod

func RenderHostPathPod(podName string, dir string, hostPathType v1.HostPathType, mountPropagation v1.MountPropagationMode, cmd []string, args []string) *v1.Pod

func RenderPod

func RenderPod(name string, cmd []string, args []string) *v1.Pod

func RenderPrivilegedPod

func RenderPrivilegedPod(name string, cmd []string, args []string) *v1.Pod

func RenderTargetcliPod

func RenderTargetcliPod(name, disksPVC string) *v1.Pod

Types

type PodsByCreationTimestamp

type PodsByCreationTimestamp []v1.Pod

PodsByCreationTimestamp sorts a list of Pods by creation timestamp, using their names as a tie breaker.

func (PodsByCreationTimestamp) Len

func (o PodsByCreationTimestamp) Len() int

func (PodsByCreationTimestamp) Less

func (o PodsByCreationTimestamp) Less(i, j int) bool

func (PodsByCreationTimestamp) Swap

func (o PodsByCreationTimestamp) Swap(i, j int)

Jump to

Keyboard shortcuts

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