Documentation
¶
Index ¶
Constants ¶
const (
CompletedStatus = "completed"
)
Variables ¶
var ErrFollowUpDefinitionNotFound = stderrors.New("follow-up definition not found in the .tekton directory")
ErrFollowUpDefinitionNotFound reports a follow-up definition that is not in the .tekton directory fetched at the event's pinned revision: removed after the event, or provenance drift. Permanent: the entry is skipped, not requeued.
Functions ¶
func ResolveFollowUpDefinition ¶ added in v0.54.0
func ResolveFollowUpDefinition(ctx context.Context, run *params.Run, k8int kubeinteraction.Interface, eventEmitter *events.EventEmitter, logger *zap.SugaredLogger, vcx provider.Interface, event *info.Event, repo *v1alpha1.Repository, definitionName string, paramFilters map[string]string, ) (*tektonv1.PipelineRun, error)
ResolveFollowUpDefinition fetches the .tekton directory at the revision the event pinned and resolves the named definition the way the event-time matching did: template variables, remote tasks, the git auth secret. The returned PipelineRun is ready to be decorated and created.
The definition is re-resolved instead of stored on the entry, so no annotation size limit applies to it: in-repository content is pinned by the revision, remote tasks are fetched as they are at creation time.
Types ¶
type ConcurrencyManager ¶ added in v0.15.0
type ConcurrencyManager struct {
// contains filtered or unexported fields
}
func NewConcurrencyManager ¶ added in v0.15.0
func NewConcurrencyManager() *ConcurrencyManager
func (*ConcurrencyManager) AddPipelineRun ¶ added in v0.15.0
func (c *ConcurrencyManager) AddPipelineRun(pr *v1.PipelineRun)
func (*ConcurrencyManager) Enable ¶ added in v0.15.0
func (c *ConcurrencyManager) Enable()
func (*ConcurrencyManager) GetExecutionOrder ¶ added in v0.15.0
func (c *ConcurrencyManager) GetExecutionOrder() (string, []*v1.PipelineRun)