Help us shape the future of Go! Take the 2026 Go Developer Survey

annotations

package
v1.133.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForBatchCronSchedule added in v1.123.0

func ForBatchCronSchedule(schedule string) map[string]string

ForBatchCronSchedule returns an annotation holding the cron schedule expression a RadixBatch was created from. Returns nil when the schedule is empty, so non-cron batches carry no annotation.

func ForClusterAutoscalerSafeToEvict added in v1.43.5

func ForClusterAutoscalerSafeToEvict(safeToEvict bool) map[string]string

ForClusterAutoscalerSafeToEvict returns annotation used by cluster autoscaler to determine if a Pod can be evicted from a node in case of scale down. safeToEvict=false: The pod can not be evicted, and the Pod's node cannot be removed until Pod is completed safeToEvict=true: The pod can be evicted, and the Pod's node can be removed in scale-down scenario Cluster Autoscaler docs: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca

func ForKubernetesDeploymentObservedGeneration added in v1.58.3

func ForKubernetesDeploymentObservedGeneration(rd *radixv1.RadixDeployment) map[string]string

ForKubernetesDeploymentObservedGeneration returns annotations describing which RadixDeployment version was used while syncing

func ForRadixBranch

func ForRadixBranch(branch string) map[string]string

ForRadixBranch returns annotations describing a branch name

func ForRadixDeploymentName

func ForRadixDeploymentName(deploymentName string) map[string]string

ForRadixDeploymentName returns annotations describing a Radix deployment name

func ForServiceAccountWithRadixIdentityClientId added in v1.72.0

func ForServiceAccountWithRadixIdentityClientId(identityClientId string) map[string]string

ForServiceAccountWithRadixIdentityClientId returns annotations for configuring a ServiceAccount with external identities, e.g. for Azure Workload Identity: "azure.workload.identity/client-id": "11111111-2222-3333-4444-555555555555"

func Merge

func Merge(annotations ...map[string]string) map[string]string

Merge multiple maps into one

Types

This section is empty.

Jump to

Keyboard shortcuts

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