pod

package
v0.0.0-...-6776c55 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HugePages2Mi = "2Mi"
	HugePages1Gi = "1Gi"
)

Variables

This section is empty.

Functions

func DefinePod

func DefinePod(podName string, namespace string, image string, label map[string]string) *corev1.Pod

DefinePod defines pod manifest based on given params.

func RedefineFirstContainerWith1GiHugepages

func RedefineFirstContainerWith1GiHugepages(pod *corev1.Pod, hugepages int) error

func RedefineFirstContainerWith2MiHugepages

func RedefineFirstContainerWith2MiHugepages(pod *corev1.Pod, hugepages int) error

func RedefinePodContainerWithLivenessProbeCommand

func RedefinePodContainerWithLivenessProbeCommand(pod *corev1.Pod, index int, commands []string)

func RedefineSecondContainerWith1GHugepages

func RedefineSecondContainerWith1GHugepages(pod *corev1.Pod, hugepages int) error

func RedefineWith1GiHugepages

func RedefineWith1GiHugepages(pod *corev1.Pod, hugepages int)

func RedefineWith2MiHugepages

func RedefineWith2MiHugepages(pod *corev1.Pod, hugepages int)

func RedefineWithCPUResources

func RedefineWithCPUResources(pod *corev1.Pod, limit string, req string)

func RedefineWithContainerExecCommand

func RedefineWithContainerExecCommand(pod *corev1.Pod, commandArgs []string, containerIndex int) error

func RedefineWithLivenessProbe

func RedefineWithLivenessProbe(pod *corev1.Pod)

RedefineWithLivenessProbe adds liveness probe to pod manifest.

func RedefineWithMemoryResources

func RedefineWithMemoryResources(pod *corev1.Pod, limit string, req string)

func RedefineWithNodeAffinity

func RedefineWithNodeAffinity(pod *corev1.Pod, key string)

RedefineWithNodeAffinity redefines pod with nodeAffinity spec.

func RedefineWithPVC

func RedefineWithPVC(pod *corev1.Pod, volumeName string, claimName string)

func RedefineWithPodAffinity

func RedefineWithPodAffinity(put *corev1.Pod, label map[string]string)

RedefineWithPodAffinity redefines pod with podAffinity spec.

func RedefineWithPodAntiAffinity

func RedefineWithPodAntiAffinity(put *corev1.Pod, label map[string]string)

RedefineWithPodAntiAffinity redefines pod with podAntiAffinity spec.

func RedefineWithPostStart

func RedefineWithPostStart(pod *corev1.Pod)

RedefineWithPostStart adds postStart to pod manifest.

func RedefineWithReadinessProbe

func RedefineWithReadinessProbe(pod *corev1.Pod)

RedefineWithReadinessProbe adds readiness probe to given pod manifest.

func RedefineWithRunTimeClass

func RedefineWithRunTimeClass(pod *corev1.Pod, rtcName string)

func RedefineWithServiceAccount

func RedefineWithServiceAccount(pod *corev1.Pod, serviceAccountName string)

func RedefineWithStartUpProbe

func RedefineWithStartUpProbe(pod *corev1.Pod)

RedefineWithStartUpProbe adds startup probe to pod manifest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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