labels

package
v1.66.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 6 Imported by: 0

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 ForApplicationName

func ForApplicationName(appName string) kubelabels.Set

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

func ForAuxComponent added in v1.47.0

func ForAuxComponent(appName string, component v1.RadixCommonDeployComponent) map[string]string

ForAuxComponent returns labels for application component aux OAuth proxy

func ForAuxComponentActiveClusterAliasIngress added in v1.47.5

func ForAuxComponentActiveClusterAliasIngress(appName string, component v1.RadixCommonDeployComponent) kubelabels.Set

ForAuxComponentActiveClusterAliasIngress returns labels for application component active cluster alias ingress

func ForAuxComponentAppAliasIngress added in v1.47.5

func ForAuxComponentAppAliasIngress(appName string, component v1.RadixCommonDeployComponent) kubelabels.Set

ForAuxComponentAppAliasIngress returns labels for application component app alias ingress

func ForAuxComponentDNSAliasIngress added in v1.47.0

func ForAuxComponentDNSAliasIngress(appName string, component v1.RadixCommonDeployComponent, dnsAlias string) kubelabels.Set

ForAuxComponentDNSAliasIngress returns labels for application component aux DNS alias ingress OAuth proxy

func ForAuxComponentDefaultIngress added in v1.47.0

func ForAuxComponentDefaultIngress(appName string, component v1.RadixCommonDeployComponent) kubelabels.Set

ForAuxComponentDefaultIngress returns labels for application component aux OAuth proxy default ingress

func ForAuxComponentExternalAliasIngress added in v1.47.5

func ForAuxComponentExternalAliasIngress(appName string, component v1.RadixCommonDeployComponent) kubelabels.Set

ForAuxComponentExternalAliasIngress returns labels for application component aux OAuth proxy external alias ingress

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 ForCommitId

func ForCommitId(commitId string) kubelabels.Set

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

func ForComponentActiveClusterAliasIngress added in v1.47.5

func ForComponentActiveClusterAliasIngress(component v1.RadixCommonDeployComponent) kubelabels.Set

ForComponentActiveClusterAliasIngress returns labels for application component active cluster alias ingress

func ForComponentAppAliasIngress added in v1.47.5

func ForComponentAppAliasIngress(component v1.RadixCommonDeployComponent) kubelabels.Set

ForComponentAppAliasIngress returns labels for application component app alias ingress

func ForComponentDefaultAliasIngress added in v1.47.5

func ForComponentDefaultAliasIngress(component v1.RadixCommonDeployComponent) kubelabels.Set

ForComponentDefaultAliasIngress returns labels for application component default alias ingress

func ForComponentExternalAliasIngress added in v1.47.5

func ForComponentExternalAliasIngress(component v1.RadixCommonDeployComponent) kubelabels.Set

ForComponentExternalAliasIngress returns labels for application component external alias ingress

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 v1.RadixComponentType) kubelabels.Set

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

func ForDNSAliasIngress added in v1.47.0

func ForDNSAliasIngress(appName string, componentName, dnsAlias string) kubelabels.Set

ForDNSAliasIngress returns labels for DNS alias ingress

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 v1.RadixDeployExternalDNS) kubelabels.Set

ForExternalDNSCertificate returns labels for External DNS certificate

func ForExternalDNSTLSSecret added in v1.50.1

func ForExternalDNSTLSSecret(appName string, externalDns v1.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 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 v1.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 *v1.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

func ForServiceAccountWithRadixIdentity

func ForServiceAccountWithRadixIdentity(identity *v1.Identity) kubelabels.Set

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

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