update

package
v0.0.0-...-63f2ac7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotations

func Annotations(dst *map[string]string, src map[string]string)

Annotations updates annotations in 'dst' based on values in 'src'. It leaves any extra annotations (found in 'dst' but not in 'src') untouched, since those might be set by someone else.

func Env

func Env(dst *[]corev1.EnvVar, src []corev1.EnvVar)

Env updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

func GOMAXPROCS

func GOMAXPROCS(dst *[]corev1.EnvVar, resources corev1.ResourceRequirements)

GOMAXPROCS sets the GOMAXPROCS env var if CPU resource limits are configured.

func InPlaceServiceOverrides

func InPlaceServiceOverrides(svc *corev1.Service, so *planetscalev2.ServiceOverrides)

InPlaceServiceOverrides applies only the overrides that are safe to update in-place.

func KeyspaceDiskSize

func KeyspaceDiskSize(dst, src *planetscalev2.VitessKeyspaceTemplate)

KeyspaceDiskSize updates disk sizes in 'dst' based on values in 'src'. It does not update any other values besides disk sizes. It leaves extra entries (found in 'dst' but not in 'src') untouched.

func Labels

func Labels(dst *map[string]string, src map[string]string)

Labels updates labels in 'dst' based on values in 'src'. It leaves any extra labels (found in 'dst' but not in 'src') untouched, since those might be set by someone else.

func LocalObjectReferences

func LocalObjectReferences(dst *[]corev1.LocalObjectReference, src []corev1.LocalObjectReference)

LocalObjectReferences updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

func PartitioningSet

PartitioningSet adds, removes, or reorders partitionings in dst as needed to keep the set of partitionings in sync with src, without changing the content of any partitioning that already existed in dst.

func PodContainer

func PodContainer(dst, src *corev1.Container)

PodContainer updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched for certain fields of Container, since those might be set by mutating admission webhooks, other controllers, or the API server.

PodContainer uses rules appropriate for directly managing Pods. Use PodTemplateContainer if you are instead filling in a PodTemplate inside another object, such as a Deployment.

func PodContainers

func PodContainers(dst *[]corev1.Container, src []corev1.Container)

PodContainers updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

PodContainers uses rules appropriate for directly managing Pods. Use PodTemplateContainers if you are instead filling in a PodTemplate inside another object, such as a Deployment.

func PodTemplateContainer

func PodTemplateContainer(dst, src *corev1.Container)

PodTemplateContainer updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched for certain fields of Container, since those might be set by mutating admission webhooks, other controllers, or the API server.

PodTemplateContainer uses rules appropriate for filling in a PodTemplate inside another object, such as a Deployment. Use PodContainer if you are instead directly managing Pods.

func PodTemplateContainers

func PodTemplateContainers(dst *[]corev1.Container, src []corev1.Container)

PodTemplateContainers updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

PodTemplateContainers uses rules appropriate for filling in a PodTemplate inside another object, such as a Deployment. Use PodContainers if you are instead directly managing Pods.

func ResourceList

func ResourceList(dst, src *corev1.ResourceList)

ResourceList updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

func ResourceRequirements

func ResourceRequirements(dst, src *corev1.ResourceRequirements)

ResourceRequirements updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

func SecurityContext

func SecurityContext(dst **corev1.SecurityContext, src *corev1.SecurityContext)

SecurityContext updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched for certain fields of SecurityContext, since those might be set by mutating admission webhooks, other controllers, or the API server.

func ServiceOverrides

func ServiceOverrides(svc *corev1.Service, so *planetscalev2.ServiceOverrides)

ServiceOverrides applies the specified overrides (if any) to the given Service.

func ShardDiskSize

ShardDiskSize updates values in 'dst' based on values in 'src'. It does not update any other values besides disk sizes. It leaves extra entries (found in 'dst' but not in 'src') untouched.

func StorageResource

func StorageResource(dst *corev1.ResourceList, src corev1.ResourceList)

StorageResource updates disk size entries in 'dst' based on the values in 'src'.

func StringMap

func StringMap(dst *map[string]string, src map[string]string)

StringMap mutates a destination map to include the key value pairs from a provided source map. This behaves as an update in place.

func Tolerations

func Tolerations(dst *[]corev1.Toleration, src []corev1.Toleration)

Tolerations updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

func TopologySpreadConstraints

func TopologySpreadConstraints(dst *[]corev1.TopologySpreadConstraint, src []corev1.TopologySpreadConstraint)

TopologySpreadConstraints updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

func VolumeMounts

func VolumeMounts(dst *[]corev1.VolumeMount, src []corev1.VolumeMount)

VolumeMounts updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

func Volumes

func Volumes(dst *[]corev1.Volume, src []corev1.Volume)

Volumes updates entries in 'dst' based on the values in 'src'. It leaves extra entries (found in 'dst' but not in 'src') untouched, since those might be set by mutating admission webhooks or other controllers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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