labels

package
v1.39.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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 Merge

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

Merge multiple maps into one

func RequirementRadixBatchNameLabelExists added in v1.32.3

func RequirementRadixBatchNameLabelExists() (*kubelabels.Requirement, error)

RequirementRadixBatchNameLabelExists returns a requirement that the label RadixBatchNameLabel exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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