patch

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInitContainers

func AddInitContainers(pod *corev1.Pod, initContainers []*corev1.Container)

func ContainersPatch

func ContainersPatch(pod *corev1.Pod, patches []*appsv1alpha1.ContainerPatch)

func MergeEnvByOverwrite

func MergeEnvByOverwrite(original []corev1.EnvVar, additional []corev1.EnvVar) (res []corev1.EnvVar)

func MergeTolerations

func MergeTolerations(original []corev1.Toleration, additional []corev1.Toleration) []corev1.Toleration

func MergeVolumeMountByOverwrite

func MergeVolumeMountByOverwrite(original []corev1.VolumeMount, additional []corev1.VolumeMount) (res []corev1.VolumeMount)

func MergeVolumes

func MergeVolumes(original []corev1.Volume, additional []corev1.Volume) []corev1.Volume

func MergeWithOverwriteTolerations

func MergeWithOverwriteTolerations(original []corev1.Toleration, additional []corev1.Toleration) []corev1.Toleration

func MergeWithOverwriteVolumes

func MergeWithOverwriteVolumes(original []corev1.Volume, additional []corev1.Volume) []corev1.Volume

func PatchAffinity

func PatchAffinity(pod *corev1.Pod, affinity *appsv1alpha1.PodDecorationAffinity)

func PatchMetadata

func PatchMetadata(oldMetadata *metav1.ObjectMeta, patches []*appsv1alpha1.PodDecorationPodTemplateMeta) (err error)

PatchMetadata patch annotations and labels

func PrimaryContainerPatch

func PrimaryContainerPatch(pod *corev1.Pod, patches []*appsv1alpha1.PrimaryContainerPatch)

Types

This section is empty.

Jump to

Keyboard shortcuts

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