Documentation ¶
Index ¶
Constants ¶
const (
// MaxLabelLength is the maximum allowed characters in a label value
MaxLabelLength = 63
)
Common constants
const ReleaseFinalizer string = "appstudio.redhat.com/release-finalizer"
ReleaseFinalizer is the finalizer name to be added to the Releases
Variables ¶
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
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 ¶
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 ¶
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 ¶
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.
Types ¶
This section is empty.