Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PipelineNameLabel is a label that indicates a resource is part of a Pipeline. PipelineNameLabel = "gitops.pro/pipeline" // PipelineEnvironmentabel is a label that indicates which stage a component // is from within a Pipeline. PipelineEnvironmentLabel = "gitops.pro/pipeline-environment" // PipelineEnvironmentAfterLabel is a label that indicates which stage a // component follows within a pipeline. PipelineEnvironmentAfterLabel = "gitops.pro/pipeline-after" )
Variables ¶
This section is empty.
Functions ¶
func OrderEnvironments ¶
OrderEnvironments takes a set pairs of named environments and their preceeding environment and calculates the ordering.
If more than one environment has no dependent environments, the ordering will be non-deterministic, all dependent environments will be in order.
func WithLabels ¶
WithLabels is a functional option for configuring the Parser with a set of labels.
Types ¶
type Parser ¶
type Parser struct { Labels Labels // contains filtered or unexported fields }
Parser parses the labels and annotations on runtime Objects and extracts apps from the labels.
Click to show internal directories.
Click to hide internal directories.