annotations

package
v1.113.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PreviewOAuth2ProxyModeAnnotation is used to indicate if the preview OAuth2 proxy mode is enabled.
	// Comma separated list of target environments where its enabled.
	PreviewOAuth2ProxyModeAnnotation = "radix.equinor.com/preview-oauth2-proxy-mode"
	PreviewGatewayModeAnnotation     = "radix.equinor.com/preview-gateway-mode"
)

Variables

This section is empty.

Functions

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 GatewayAPIEnabledForEnvironment added in v1.110.0

func GatewayAPIEnabledForEnvironment(annotations map[string]string, currentEnv string) bool

GatewayAPIEnabledForEnvironment checks if the preview gateway mode is enabled for a given environment

func Merge

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

Merge multiple maps into one

func OAuth2ProxyModeEnabledForEnvironment added in v1.108.0

func OAuth2ProxyModeEnabledForEnvironment(annotations map[string]string, currentEnv string) bool

OAuth2ProxyModeEnabledForEnvironment checks if the preview OAuth2 proxy mode is enabled for a given environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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