helper

package
v0.0.0-...-1540654 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const WaitingTime = 5 * time.Minute

Variables

This section is empty.

Functions

func AppendIstioContainerToPod

func AppendIstioContainerToPod(pod *corev1.Pod, image string)

AppendIstioContainerToPod appends istio-proxy container to a pod.

func ArgListToMap

func ArgListToMap(lst []string) map[string]string

ArgListToMap takes a list of strings of the form "key=value" and translate it into a map of the form {key: value}.

func DefineDeploymentWithNonUBIContainer

func DefineDeploymentWithNonUBIContainer(namespace string) *appsv1.Deployment

Creates deployment with one pod with one non-UBI based container.

func DefineStatefulSetWithNonUBIContainer

func DefineStatefulSetWithNonUBIContainer(namespace string) *appsv1.StatefulSet

Creates statefulset with one pod with one non-UBI based container.

func GetHugePagesConfigNumber

func GetHugePagesConfigNumber(file string, pod *corev1.Pod) (int, error)

GetHugePagesConfigNumber returns hugepages config number from a given file.

func UpdateAndVerifyHugePagesConfig

func UpdateAndVerifyHugePagesConfig(updatedHugePagesNumber int, filePath string, pod *corev1.Pod) error

UpdateAndVerifyHugePagesConfig updates the hugepages file with a given number, and verify that it was updated successfully.

func WaitForSpecificNodeCondition

func WaitForSpecificNodeCondition(clients *client.ClientSet, timeout, interval time.Duration, nodeName string,
	ready bool) error

WaitForSpecificNodeCondition waits for a given node to become ready or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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