Documentation ¶
Index ¶
- Constants
- func DefinePod(podName string, namespace string, image string, label map[string]string) *corev1.Pod
- func RedefineFirstContainerWith1GiHugepages(pod *corev1.Pod, hugepages int) error
- func RedefineFirstContainerWith2MiHugepages(pod *corev1.Pod, hugepages int) error
- func RedefinePodContainerWithLivenessProbeCommand(pod *corev1.Pod, index int, commands []string)
- func RedefineSecondContainerWith1GHugepages(pod *corev1.Pod, hugepages int) error
- func RedefineWith1GiHugepages(pod *corev1.Pod, hugepages int)
- func RedefineWith2MiHugepages(pod *corev1.Pod, hugepages int)
- func RedefineWithCPUResources(pod *corev1.Pod, limit string, req string)
- func RedefineWithContainerExecCommand(pod *corev1.Pod, commandArgs []string, containerIndex int) error
- func RedefineWithLivenessProbe(pod *corev1.Pod)
- func RedefineWithMemoryResources(pod *corev1.Pod, limit string, req string)
- func RedefineWithNodeAffinity(pod *corev1.Pod, key string)
- func RedefineWithPVC(pod *corev1.Pod, volumeName string, claimName string)
- func RedefineWithPodAffinity(put *corev1.Pod, label map[string]string)
- func RedefineWithPodAntiAffinity(put *corev1.Pod, label map[string]string)
- func RedefineWithPostStart(pod *corev1.Pod)
- func RedefineWithReadinessProbe(pod *corev1.Pod)
- func RedefineWithRunTimeClass(pod *corev1.Pod, rtcName string)
- func RedefineWithServiceAccount(pod *corev1.Pod, serviceAccountName string)
- func RedefineWithStartUpProbe(pod *corev1.Pod)
Constants ¶
View Source
const ( HugePages2Mi = "2Mi" HugePages1Gi = "1Gi" )
Variables ¶
This section is empty.
Functions ¶
func RedefineWithLivenessProbe ¶
RedefineWithLivenessProbe adds liveness probe to pod manifest.
func RedefineWithNodeAffinity ¶
RedefineWithNodeAffinity redefines pod with nodeAffinity spec.
func RedefineWithPodAffinity ¶
RedefineWithPodAffinity redefines pod with podAffinity spec.
func RedefineWithPodAntiAffinity ¶
RedefineWithPodAntiAffinity redefines pod with podAntiAffinity spec.
func RedefineWithPostStart ¶
RedefineWithPostStart adds postStart to pod manifest.
func RedefineWithReadinessProbe ¶
RedefineWithReadinessProbe adds readiness probe to given pod manifest.
func RedefineWithStartUpProbe ¶
RedefineWithStartUpProbe adds startup probe to pod manifest.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.