deployment

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendServiceAccount

func AppendServiceAccount(deployment *appsv1.Deployment, serviceAccountName string)

func DefineDeployment

func DefineDeployment(deploymentName string, namespace string, image string, label map[string]string) *appsv1.Deployment

DefineDeployment returns deployment struct.

func RedefineAllContainersWithPreStopSpec

func RedefineAllContainersWithPreStopSpec(deployment *appsv1.Deployment, command []string)

RedefineAllContainersWithPreStopSpec redefines deployment with requested lifecycle/preStop spec.

func RedefineContainerCommand

func RedefineContainerCommand(deployment *appsv1.Deployment, index int, command []string) error

func RedefineContainerEnvVarList

func RedefineContainerEnvVarList(deployment *appsv1.Deployment, index int, envVars []corev1.EnvVar) error

func RedefineFirstContainerWithPreStopSpec

func RedefineFirstContainerWithPreStopSpec(deployment *appsv1.Deployment, command []string) error

RedefineFirstContainerWithPreStopSpec redefines deployment first container with lifecycle/preStop spec.

func RedefineWith1GiHugepages

func RedefineWith1GiHugepages(deployment *appsv1.Deployment, hugepages int)

func RedefineWith2MiHugepages

func RedefineWith2MiHugepages(deployment *appsv1.Deployment, hugepages int)

func RedefineWithAllRequestsAndLimits

func RedefineWithAllRequestsAndLimits(deployment *appsv1.Deployment, memoryLimit string, cpuLimit string,
	memoryRequest string, cpuRequest string)

func RedefineWithAutomountServiceAccountToken

func RedefineWithAutomountServiceAccountToken(deployment *appsv1.Deployment, token bool)

func RedefineWithCPUResources

func RedefineWithCPUResources(deployment *appsv1.Deployment, limit string, req string)

func RedefineWithContainerSpecs

func RedefineWithContainerSpecs(deployment *appsv1.Deployment, containerSpecs []corev1.Container)

func RedefineWithContainersSecurityContextAll

func RedefineWithContainersSecurityContextAll(deployment *appsv1.Deployment)

RedefineWithContainersSecurityContextAll redefines deployment with extended permissions.

func RedefineWithContainersSecurityContextAllowPrivilegeEscalation

func RedefineWithContainersSecurityContextAllowPrivilegeEscalation(deployment *appsv1.Deployment,
	allowPrivilegeEscalation bool)

func RedefineWithContainersSecurityContextBpf

func RedefineWithContainersSecurityContextBpf(deployment *appsv1.Deployment)

func RedefineWithContainersSecurityContextIpcLock

func RedefineWithContainersSecurityContextIpcLock(deployment *appsv1.Deployment)

func RedefineWithContainersSecurityContextNetAdmin

func RedefineWithContainersSecurityContextNetAdmin(deployment *appsv1.Deployment)

func RedefineWithContainersSecurityContextNetRaw

func RedefineWithContainersSecurityContextNetRaw(deployment *appsv1.Deployment)

func RedefineWithContainersSecurityContextSysAdmin

func RedefineWithContainersSecurityContextSysAdmin(deployment *appsv1.Deployment)

func RedefineWithHostIpc

func RedefineWithHostIpc(deployment *appsv1.Deployment, hostIpc bool)

func RedefineWithHostNetwork

func RedefineWithHostNetwork(deployment *appsv1.Deployment, hostNetwork bool)

func RedefineWithHostPath

func RedefineWithHostPath(deployment *appsv1.Deployment, name string, path string)

func RedefineWithHostPid

func RedefineWithHostPid(deployment *appsv1.Deployment, hostPid bool)

func RedefineWithImagePullPolicy

func RedefineWithImagePullPolicy(deployment *appsv1.Deployment, pullPolicy corev1.PullPolicy)

func RedefineWithLabels

func RedefineWithLabels(deployment *appsv1.Deployment, label map[string]string)

RedefineWithLabels redefines deployment with additional label.

func RedefineWithLivenessProbe

func RedefineWithLivenessProbe(deployment *appsv1.Deployment)

func RedefineWithMemoryRequestAndCPURequestsAndLimits

func RedefineWithMemoryRequestAndCPURequestsAndLimits(deployment *appsv1.Deployment, cpuLimit string,
	memoryRequest string, cpuRequest string)

func RedefineWithMemoryRequestsAndLimitsAndCPURequest

func RedefineWithMemoryRequestsAndLimitsAndCPURequest(deployment *appsv1.Deployment, memoryLimit string,
	memoryRequest string, cpuRequest string)

func RedefineWithMultus

func RedefineWithMultus(deployment *appsv1.Deployment, nadNames []string)

RedefineWithMultus redefines deployment with additional labels.

func RedefineWithNoExecuteToleration

func RedefineWithNoExecuteToleration(deployment *appsv1.Deployment)

func RedefineWithNoScheduleToleration

func RedefineWithNoScheduleToleration(deployment *appsv1.Deployment)

func RedefineWithNodeAffinity

func RedefineWithNodeAffinity(deployment *appsv1.Deployment, key string)

func RedefineWithNodeSelector

func RedefineWithNodeSelector(deployment *appsv1.Deployment, nodeSelector map[string]string)

func RedefineWithPVC

func RedefineWithPVC(deployment *appsv1.Deployment, name string, claim string)

func RedefineWithPodAntiAffinity

func RedefineWithPodAntiAffinity(deployment *appsv1.Deployment, label map[string]string)

RedefineWithPodAntiAffinity redefines deployment with podAntiAffinity spec.

func RedefineWithPodSecurityContextRunAsUser

func RedefineWithPodSecurityContextRunAsUser(deployment *appsv1.Deployment, uid int64)

func RedefineWithPostStart

func RedefineWithPostStart(deployment *appsv1.Deployment)

RedefineWithPostStart adds postStart to deployment manifest.

func RedefineWithPreferNoScheduleToleration

func RedefineWithPreferNoScheduleToleration(deployment *appsv1.Deployment)

func RedefineWithPrivilegedContainer

func RedefineWithPrivilegedContainer(deployment *appsv1.Deployment)

func RedefineWithReadinessProbe

func RedefineWithReadinessProbe(deployment *appsv1.Deployment)

func RedefineWithReplicaNumber

func RedefineWithReplicaNumber(deployment *appsv1.Deployment, replicasNumber int32)

RedefineWithReplicaNumber redefines deployment with requested replica number.

func RedefineWithResourceRequests

func RedefineWithResourceRequests(deployment *appsv1.Deployment, memory string, cpu string)

func RedefineWithRunTimeClass

func RedefineWithRunTimeClass(deployment *appsv1.Deployment, rtcName string)

func RedefineWithServiceAccount

func RedefineWithServiceAccount(deployment *appsv1.Deployment, serviceAccountName string)

func RedefineWithShareProcessNamespace

func RedefineWithShareProcessNamespace(deployment *appsv1.Deployment, shareProcessNamespace bool)

func RedefineWithStartUpProbe

func RedefineWithStartUpProbe(deployment *appsv1.Deployment)

RedefineWithStartUpProbe adds startup probe to deployment manifest.

func RedefineWithSysPtrace

func RedefineWithSysPtrace(deployment *appsv1.Deployment)

func RedefineWithTerminationGracePeriod

func RedefineWithTerminationGracePeriod(deployment *appsv1.Deployment, terminationGracePeriod *int64)

RedefineWithTerminationGracePeriod redefines deployment with terminationGracePeriod spec.

Types

type MultusAnnotation

type MultusAnnotation struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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