Documentation ¶
Index ¶
- func AppendServiceAccount(deployment *appsv1.Deployment, serviceAccountName string)
- func DefineDeployment(deploymentName string, namespace string, image string, label map[string]string) *appsv1.Deployment
- func RedefineAllContainersWithPreStopSpec(deployment *appsv1.Deployment, command []string)
- func RedefineContainerCommand(deployment *appsv1.Deployment, index int, command []string) error
- func RedefineContainerEnvVarList(deployment *appsv1.Deployment, index int, envVars []corev1.EnvVar) error
- func RedefineFirstContainerWithPreStopSpec(deployment *appsv1.Deployment, command []string) error
- func RedefineWith1GiHugepages(deployment *appsv1.Deployment, hugepages int)
- func RedefineWith2MiHugepages(deployment *appsv1.Deployment, hugepages int)
- func RedefineWithAllRequestsAndLimits(deployment *appsv1.Deployment, memoryLimit string, cpuLimit string, ...)
- func RedefineWithAutomountServiceAccountToken(deployment *appsv1.Deployment, token bool)
- func RedefineWithCPUResources(deployment *appsv1.Deployment, limit string, req string)
- func RedefineWithContainerSpecs(deployment *appsv1.Deployment, containerSpecs []corev1.Container)
- func RedefineWithContainersSecurityContextAll(deployment *appsv1.Deployment)
- func RedefineWithContainersSecurityContextAllowPrivilegeEscalation(deployment *appsv1.Deployment, allowPrivilegeEscalation bool)
- func RedefineWithContainersSecurityContextBpf(deployment *appsv1.Deployment)
- func RedefineWithContainersSecurityContextIpcLock(deployment *appsv1.Deployment)
- func RedefineWithContainersSecurityContextNetAdmin(deployment *appsv1.Deployment)
- func RedefineWithContainersSecurityContextNetRaw(deployment *appsv1.Deployment)
- func RedefineWithContainersSecurityContextSysAdmin(deployment *appsv1.Deployment)
- func RedefineWithHostIpc(deployment *appsv1.Deployment, hostIpc bool)
- func RedefineWithHostNetwork(deployment *appsv1.Deployment, hostNetwork bool)
- func RedefineWithHostPath(deployment *appsv1.Deployment, name string, path string)
- func RedefineWithHostPid(deployment *appsv1.Deployment, hostPid bool)
- func RedefineWithImagePullPolicy(deployment *appsv1.Deployment, pullPolicy corev1.PullPolicy)
- func RedefineWithLabels(deployment *appsv1.Deployment, label map[string]string)
- func RedefineWithLivenessProbe(deployment *appsv1.Deployment)
- func RedefineWithMemoryRequestAndCPURequestsAndLimits(deployment *appsv1.Deployment, cpuLimit string, memoryRequest string, ...)
- func RedefineWithMemoryRequestsAndLimitsAndCPURequest(deployment *appsv1.Deployment, memoryLimit string, memoryRequest string, ...)
- func RedefineWithMultus(deployment *appsv1.Deployment, nadNames []string)
- func RedefineWithNoExecuteToleration(deployment *appsv1.Deployment)
- func RedefineWithNoScheduleToleration(deployment *appsv1.Deployment)
- func RedefineWithNodeAffinity(deployment *appsv1.Deployment, key string)
- func RedefineWithNodeSelector(deployment *appsv1.Deployment, nodeSelector map[string]string)
- func RedefineWithPVC(deployment *appsv1.Deployment, name string, claim string)
- func RedefineWithPodAntiAffinity(deployment *appsv1.Deployment, label map[string]string)
- func RedefineWithPodSecurityContextRunAsUser(deployment *appsv1.Deployment, uid int64)
- func RedefineWithPostStart(deployment *appsv1.Deployment)
- func RedefineWithPreferNoScheduleToleration(deployment *appsv1.Deployment)
- func RedefineWithPrivilegedContainer(deployment *appsv1.Deployment)
- func RedefineWithReadinessProbe(deployment *appsv1.Deployment)
- func RedefineWithReplicaNumber(deployment *appsv1.Deployment, replicasNumber int32)
- func RedefineWithResourceRequests(deployment *appsv1.Deployment, memory string, cpu string)
- func RedefineWithRunTimeClass(deployment *appsv1.Deployment, rtcName string)
- func RedefineWithServiceAccount(deployment *appsv1.Deployment, serviceAccountName string)
- func RedefineWithShareProcessNamespace(deployment *appsv1.Deployment, shareProcessNamespace bool)
- func RedefineWithStartUpProbe(deployment *appsv1.Deployment)
- func RedefineWithSysPtrace(deployment *appsv1.Deployment)
- func RedefineWithTerminationGracePeriod(deployment *appsv1.Deployment, terminationGracePeriod *int64)
- type MultusAnnotation
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 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 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"`
}