Documentation ¶
Index ¶
- func Annotations(dst *map[string]string, src map[string]string)
- func Env(dst *[]corev1.EnvVar, src []corev1.EnvVar)
- func GOMAXPROCS(dst *[]corev1.EnvVar, resources corev1.ResourceRequirements)
- func InPlaceServiceOverrides(svc *corev1.Service, so *planetscalev2.ServiceOverrides)
- func KeyspaceDiskSize(dst, src *planetscalev2.VitessKeyspaceTemplate)
- func Labels(dst *map[string]string, src map[string]string)
- func LocalObjectReferences(dst *[]corev1.LocalObjectReference, src []corev1.LocalObjectReference)
- func PartitioningSet(dst *[]planetscalev2.VitessKeyspacePartitioning, ...)
- func PodContainer(dst, src *corev1.Container)
- func PodContainers(dst *[]corev1.Container, src []corev1.Container)
- func PodTemplateContainer(dst, src *corev1.Container)
- func PodTemplateContainers(dst *[]corev1.Container, src []corev1.Container)
- func ResourceList(dst, src *corev1.ResourceList)
- func ResourceRequirements(dst, src *corev1.ResourceRequirements)
- func SecurityContext(dst **corev1.SecurityContext, src *corev1.SecurityContext)
- func ServiceOverrides(svc *corev1.Service, so *planetscalev2.ServiceOverrides)
- func ShardDiskSize(dst []planetscalev2.VitessShardTabletPool, ...)
- func StorageResource(dst *corev1.ResourceList, src corev1.ResourceList)
- func StringMap(dst *map[string]string, src map[string]string)
- func Tolerations(dst *[]corev1.Toleration, src []corev1.Toleration)
- func TopologySpreadConstraints(dst *[]corev1.TopologySpreadConstraint, src []corev1.TopologySpreadConstraint)
- func VolumeMounts(dst *[]corev1.VolumeMount, src []corev1.VolumeMount)
- func Volumes(dst *[]corev1.Volume, src []corev1.Volume)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotations ¶
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 ¶
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 ¶
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 ¶
func PartitioningSet(dst *[]planetscalev2.VitessKeyspacePartitioning, src []planetscalev2.VitessKeyspacePartitioning)
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func ShardDiskSize(dst []planetscalev2.VitessShardTabletPool, src []planetscalev2.VitessShardTabletPool)
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 ¶
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.
Types ¶
This section is empty.