metadata

package
v0.0.0-...-70b3c2e Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// MaxLabelLength is the maximum allowed characters in a label value
	MaxLabelLength = 63
)

Common constants

View Source
const ReleaseFinalizer string = "appstudio.redhat.com/release-finalizer"

ReleaseFinalizer is the finalizer name to be added to the Releases

Variables

View Source
var (
	// AttributionLabel is the label name for the standing-attribution label
	AttributionLabel = fmt.Sprintf("release.%s/standing-attribution", rhtapDomain)

	// AutoReleaseLabel is the label name for the auto-release setting
	AutoReleaseLabel = fmt.Sprintf("release.%s/auto-release", rhtapDomain)

	// AuthorLabel is the label name for the user who creates a CR
	AuthorLabel = fmt.Sprintf("release.%s/author", rhtapDomain)

	// AutomatedLabel is the label name for marking a Release as automated
	AutomatedLabel = fmt.Sprintf("release.%s/automated", rhtapDomain)

	// ReleasePlanAdmissionLabel is the ReleasePlan label for the name of the ReleasePlanAdmission to use
	ReleasePlanAdmissionLabel = fmt.Sprintf("release.%s/releasePlanAdmission", rhtapDomain)
)

Labels used by the release api package

View Source
var (
	// ApplicationNameLabel is the label used to specify the application associated with the PipelineRun
	ApplicationNameLabel = fmt.Sprintf("%s/%s", rhtapDomain, "application")

	// FinalPipelineType is the value to be used in the PipelinesTypeLabel for final Pipelines
	FinalPipelineType = "final"

	// ManagedPipelineType is the value to be used in the PipelinesTypeLabel for managed Pipelines
	ManagedPipelineType = "managed"

	// TenantPipelineType is the value to be used in the PipelinesTypeLabel for tenant Pipelines
	TenantPipelineType = "tenant"

	// PipelinesTypeLabel is the label used to describe the type of pipeline
	PipelinesTypeLabel = fmt.Sprintf("%s/%s", pipelinesLabelPrefix, "type")

	// ReleaseNameLabel is the label used to specify the name of the Release associated with the PipelineRun
	ReleaseNameLabel = fmt.Sprintf("%s/%s", releaseLabelPrefix, "name")

	// ReleaseNamespaceLabel is the label used to specify the namespace of the Release associated with the PipelineRun
	ReleaseNamespaceLabel = fmt.Sprintf("%s/%s", releaseLabelPrefix, "namespace")

	// ReleaseSnapshotLabel is the label used to specify the snapshot associated with the PipelineRun
	ReleaseSnapshotLabel = fmt.Sprintf("%s/%s", rhtapDomain, "snapshot")
)

Labels to be used within Release PipelineRuns

Functions

func AddAnnotations

func AddAnnotations(obj v1.Object, entries map[string]string)

AddAnnotations copies the map into the resource's Annotations map. When the destination map is nil, then the map will be created. The unexported function addEntries is called with args passed.

func AddLabels

func AddLabels(obj v1.Object, entries map[string]string)

AddLabels copies the map into the resource's Labels map. When the destination map is nil, then the map will be created. The unexported function addEntries is called with args passed.

func GetAnnotationsWithPrefix

func GetAnnotationsWithPrefix(obj v1.Object, prefix string) map[string]string

GetAnnotationsWithPrefix is a method that returns a map of key/value pairs matching a prefix string. The unexported function filterByPrefix is called with args passed.

func GetLabelsWithPrefix

func GetLabelsWithPrefix(obj v1.Object, prefix string) map[string]string

GetLabelsWithPrefix is a method that returns a map of key/value pairs matching a prefix string. The unexported function filterByPrefix is called with args passed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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