labels

package
v1.45.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 5 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 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 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 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 ForIsJobAuxObject added in v1.38.0

func ForIsJobAuxObject() kubelabels.Set

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

func ForJobAuxObject added in v1.38.0

func ForJobAuxObject(jobName 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 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 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