labels

package
v1.31.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 4 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 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

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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