kubernetes

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationTimeoutDuration = "brigade.sh/timeoutDuration"

	LabelBrigadeID = "brigade.sh/id"
	LabelComponent = "brigade.sh/component"
	LabelEvent     = "brigade.sh/event"
	LabelJob       = "brigade.sh/job"
	LabelProject   = "brigade.sh/project"

	LabelKeyWorker         = "worker"
	LabelKeyJob            = "job"
	LabelKeyEvent          = "event"
	LabelKeyWorkspace      = "workspace"
	LabelKeyProjectSecrets = "project-secrets"

	SecretTypeProjectSecrets = "brigade.sh/project-secrets" // nolint: gosec
	SecretTypeEvent          = "brigade.sh/event"           // nolint: gosec
	SecretTypeJobSecrets     = "brigade.sh/job"             // nolint: gosec
)

Variables

This section is empty.

Functions

func Client

func Client() (kubernetes.Interface, error)

Client returns an implementation of kubernetes.Interface.

func EventSecretName

func EventSecretName(eventID string) string

func JobPodName

func JobPodName(eventID, jobName string) string

func JobPodsSelector

func JobPodsSelector(brigadeID string) string

func JobSecretName

func JobSecretName(eventID, jobName string) string

func WorkerPodName

func WorkerPodName(eventID string) string

func WorkerPodsSelector

func WorkerPodsSelector(brigadeID string) string

func WorkspacePVCName

func WorkspacePVCName(eventID string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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