labels

package
v1.108.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForAccessValidation added in v1.42.4

func ForAccessValidation() kubelabels.Set

ForAccessValidation returns labels indicating that an object is used for access validation

func ForApplicationID added in v1.82.0

func ForApplicationID(appID radixv1.ULID) kubelabels.Set

func ForApplicationName

func ForApplicationName(appName string) kubelabels.Set

ForApplicationName returns labels describing the application name, e.g. "radix-app": "myapp"

func ForAuxOAuthProxyComponent added in v1.83.0

func ForAuxOAuthProxyComponent(appName string, component radixv1.RadixCommonDeployComponent) kubelabels.Set

ForAuxOAuthProxyComponent returns labels for application component aux OAuth proxy

func ForAuxOAuthProxyIngress added in v1.108.0

func ForAuxOAuthProxyIngress(appName string, component radixv1.RadixCommonDeployComponent) kubelabels.Set

ForAuxOAuthProxyIngress returns labels for oauth2 proxy ingress

func ForAuxOAuthRedisComponent added in v1.83.0

func ForAuxOAuthRedisComponent(appName string, component radixv1.RadixCommonDeployComponent) map[string]string

ForAuxOAuthRedisComponent returns labels for application component aux Redis

func ForBatchJobName added in v1.32.0

func ForBatchJobName(jobName string) kubelabels.Set

ForBatchJobName returns labels describing name of job in a batch, e.g. "radix-batch-job-name": "fns63hk8"

func ForBatchName added in v1.32.0

func ForBatchName(batchName string) kubelabels.Set

ForBatchName returns labels describing name of a batch, e.g. "radix-batch-name": "compute-20221212125307-pet6fubk"

func ForBatchScheduleJobType added in v1.32.3

func ForBatchScheduleJobType() kubelabels.Set

ForBatchScheduleJobType returns labels describing the batch schedule job type

func ForBatchType added in v1.32.1

func ForBatchType(batchType kube.RadixBatchType) kubelabels.Set

ForBatchType returns labels describing the type of batch, e.g. "radix-batch-type": "batch"

func ForBlobCSIAzurePersistentVolume added in v1.75.0

func ForBlobCSIAzurePersistentVolume(appName, namespace, componentName string, radixVolumeMount radixv1.RadixVolumeMount) kubelabels.Set

func ForBlobCSIAzurePersistentVolumeClaim added in v1.75.0

func ForBlobCSIAzurePersistentVolumeClaim(appName, componentName string, radixVolumeMount radixv1.RadixVolumeMount) kubelabels.Set

func ForCommitId

func ForCommitId(commitId string) kubelabels.Set

ForCommitId returns labels describing the commit ID, e.g. "radix-commit": "64b54f4a6aa542cb4bd15666c1e104eee647573a"

func ForComponentIngress added in v1.108.0

func ForComponentIngress(appName string, component radixv1.RadixCommonDeployComponent) kubelabels.Set

ForComponentIngress returns labels for a component's ingress object

func ForComponentName

func ForComponentName(componentName string) kubelabels.Set

ForComponentName returns labels describing the component name, e.g. "radix-component": "mycomponent"

func ForComponentType

func ForComponentType(componentType radixv1.RadixComponentType) kubelabels.Set

ForComponentType returns labels describing the component type, e.g. "radix-component-type": "job"

func ForDNSAliasComponentIngress added in v1.108.0

func ForDNSAliasComponentIngress(dnsAlias *radixv1.RadixDNSAlias) kubelabels.Set

ForDNSAliasComponentIngress returns labels for DNS alias ingress

func ForDNSAliasOAuthIngress added in v1.108.0

func ForDNSAliasOAuthIngress(dnsAlias *radixv1.RadixDNSAlias) kubelabels.Set

ForDNSAliasOAuthIngress returns DNS alias ingress labels for a component's oauth proxy

func ForDNSAliasRbac added in v1.47.1

func ForDNSAliasRbac(appName string) kubelabels.Set

ForDNSAliasRbac returns labels for DNS alias cluster role and rolebinding

func ForEnvironmentName added in v1.39.1

func ForEnvironmentName(envName string) kubelabels.Set

ForEnvironmentName returns labels describing the application environment name, e.g. "radix-env": "dev"

func ForExternalDNSCertificate added in v1.50.1

func ForExternalDNSCertificate(appName string, externalDns radixv1.RadixDeployExternalDNS) kubelabels.Set

ForExternalDNSCertificate returns labels for External DNS certificate

func ForExternalDNSTLSSecret added in v1.50.1

func ForExternalDNSTLSSecret(appName string, externalDns radixv1.RadixDeployExternalDNS) kubelabels.Set

ForExternalDNSTLSSecret returns labels for External DNS TLS secret

func ForJobAuxObject added in v1.38.0

func ForJobAuxObject(jobName, auxType string) kubelabels.Set

ForJobAuxObject returns labels describing the job aux object,

func ForJobScheduleJobType added in v1.32.3

func ForJobScheduleJobType() kubelabels.Set

ForJobScheduleJobType returns labels describing the job schedule job type

func ForJobType added in v1.32.3

func ForJobType(jobType string) kubelabels.Set

ForJobType returns labels describing the job type, e.g. "radix-job-type": "batch-scheduler"

func ForOAuthProxyComponentServiceAccount added in v1.72.0

func ForOAuthProxyComponentServiceAccount(component radixv1.RadixCommonDeployComponent) kubelabels.Set

ForOAuthProxyComponentServiceAccount returns labels for configuring a ServiceAccount for an aux OAuth2 proxy

func ForOAuthProxyPodWithRadixIdentity added in v1.73.0

func ForOAuthProxyPodWithRadixIdentity(oauth2 *radixv1.OAuth2) kubelabels.Set

ForOAuthProxyPodWithRadixIdentity returns labels for configuring a OAuth Proxy Pod with external identities, e.g. for Azure Workload Identity: "azure.workload.identity/use": "true"

func ForPipelineJobName added in v1.43.8

func ForPipelineJobName(jobName string) kubelabels.Set

ForPipelineJobName returns labels describing the name of a pipeline job

func ForPipelineJobPipelineType added in v1.43.8

func ForPipelineJobPipelineType(pipeline radixv1.RadixPipelineType) kubelabels.Set

ForPipelineJobPipelineType returns label describing the pipeline-job pipeline type, e.g. build-deploy, promote, deploy-only

func ForPipelineJobType added in v1.43.8

func ForPipelineJobType() kubelabels.Set

ForPipelineJobType returns labels describing the pipeline-job type

func ForPodIsJobScheduler

func ForPodIsJobScheduler() kubelabels.Set

ForPodIsJobScheduler returns labels indicating that a pod is a job scheduler,

func ForPodWithRadixIdentity

func ForPodWithRadixIdentity(identity *radixv1.Identity) kubelabels.Set

ForPodWithRadixIdentity returns labels for configuring a Pod with external identities, e.g. for Azure Workload Identity: "azure.workload.identity/use": "true"

func ForRadixImageTag added in v1.43.8

func ForRadixImageTag(imageTag string) kubelabels.Set

ForRadixImageTag returns labels describing that image tag used by pipeline job in a build-deploy scenario

func ForRadixSecretType added in v1.39.6

func ForRadixSecretType(secretType kube.RadixSecretType) kubelabels.Set

ForRadixSecretType returns labels describing the radix secret type, e.g. "radix-secret-type": "scheduler-job-payload"

func ForServiceAccountIsForComponent

func ForServiceAccountIsForComponent() kubelabels.Set

ForServiceAccountIsForComponent returns labels indicating that a service account is used by a component or job

func ForServiceAccountIsForSubPipeline added in v1.46.0

func ForServiceAccountIsForSubPipeline() kubelabels.Set

ForServiceAccountIsForSubPipeline returns labels indicating that a service account is used by a subpipeline

func GetRadixBatchDescendantsSelector added in v1.39.6

func GetRadixBatchDescendantsSelector(componentName string) kubelabels.Selector

GetRadixBatchDescendantsSelector returns selector for radix batch descendants - jobs, secrets, etc.

func IsComponentSelector added in v1.58.3

func IsComponentSelector() kubelabels.Selector

IsComponentSelector returns labels matching any component,

func IsJobAuxObjectSelector added in v1.58.3

func IsJobAuxObjectSelector(auxType string) kubelabels.Selector

IsJobAuxObjectSelector returns labels indicating that an object is a job auxiliary object,

func Merge

func Merge(labels ...map[string]string) kubelabels.Set

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