Documentation ¶
Index ¶
Constants ¶
const ( // ReasonCouldntGetPipeline indicates that the reason for the failure status is that the // associated Pipeline couldn't be retrieved ReasonCouldntGetPipeline = "CouldntGetPipeline" // ReasonInvalidBindings indicates that the reason for the failure status is that the // PipelineResources bound in the PipelineRun didn't match those declared in the Pipeline ReasonInvalidBindings = "InvalidPipelineResourceBindings" // ReasonInvalidWorkspaceBinding indicates that a Pipeline expects a workspace but a // PipelineRun has provided an invalid binding. ReasonInvalidWorkspaceBinding = "InvalidWorkspaceBindings" // ReasonInvalidServiceAccountMapping indicates that PipelineRun.Spec.ServiceAccountNames defined with a wrong taskName ReasonInvalidServiceAccountMapping = "InvalidServiceAccountMappings" // ReasonParameterTypeMismatch indicates that the reason for the failure status is that // parameter(s) declared in the PipelineRun do not have the some declared type as the // parameters(s) declared in the Pipeline that they are supposed to override. ReasonParameterTypeMismatch = "ParameterTypeMismatch" // ReasonCouldntGetTask indicates that the reason for the failure status is that the // associated Pipeline's Tasks couldn't all be retrieved ReasonCouldntGetTask = "CouldntGetTask" // ReasonCouldntGetResource indicates that the reason for the failure status is that the // associated PipelineRun's bound PipelineResources couldn't all be retrieved ReasonCouldntGetResource = "CouldntGetResource" // ReasonCouldntGetCondition indicates that the reason for the failure status is that the // associated Pipeline's Conditions couldn't all be retrieved ReasonCouldntGetCondition = "CouldntGetCondition" // ReasonParameterMissing indicates that the reason for the failure status is that the // associated PipelineRun didn't provide all the required parameters ReasonParameterMissing = "ParameterMissing" // ReasonFailedValidation indicates that the reason for failure status is // that pipelinerun failed runtime validation ReasonFailedValidation = "PipelineValidationFailed" // ReasonInvalidGraph indicates that the reason for the failure status is that the // associated Pipeline is an invalid graph (a.k.a wrong order, cycle, …) ReasonInvalidGraph = "PipelineInvalidGraph" // ReasonCancelled indicates that a PipelineRun was cancelled. ReasonCancelled = "PipelineRunCancelled" // ReasonCouldntCancel indicates that a PipelineRun was cancelled but attempting to update // all of the running TaskRuns as cancelled failed. ReasonCouldntCancel = "PipelineRunCouldntCancel" // ReasonInvalidTaskResultReference indicates a task result was declared // but was not initialized by that task ReasonInvalidTaskResultReference = "InvalidTaskResultReference" )
const ( // ReasonCouldntCreateAffinityAssistantStatefulSet indicates that a PipelineRun uses workspaces with PersistentVolumeClaim // as a volume source and expect an Assistant StatefulSet, but couldn't create a StatefulSet. ReasonCouldntCreateAffinityAssistantStatefulSet = "CouldntCreateAffinityAssistantStatefulSet" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reconciler ¶
type Reconciler struct { KubeClientSet kubernetes.Interface PipelineClientSet clientset.Interface Images pipeline.Images // contains filtered or unexported fields }
Reconciler implements controller.Reconciler for Configuration resources.
func (*Reconciler) ReconcileKind ¶ added in v0.14.0
func (c *Reconciler) ReconcileKind(ctx context.Context, pr *v1beta1.PipelineRun) pkgreconciler.Event
ReconcileKind compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the Pipeline Run resource with the current status of the resource.
type Recorder ¶ added in v0.8.0
Recorder holds keys for Tekton metrics
func NewRecorder ¶ added in v0.8.0
NewRecorder creates a new metrics recorder instance to log the PipelineRun related metrics
func (*Recorder) DurationAndCount ¶ added in v0.8.0
func (r *Recorder) DurationAndCount(pr *v1beta1.PipelineRun) error
DurationAndCount logs the duration of PipelineRun execution and count for number of PipelineRuns succeed or failed returns an error if its failed to log the metrics
func (*Recorder) ReportRunningPipelineRuns ¶ added in v0.14.0
func (r *Recorder) ReportRunningPipelineRuns(ctx context.Context, lister listers.PipelineRunLister)
ReportRunningPipelineRuns invokes RunningPipelineRuns on our configured PeriodSeconds until the context is cancelled.
func (*Recorder) RunningPipelineRuns ¶ added in v0.8.0
func (r *Recorder) RunningPipelineRuns(lister listers.PipelineRunLister) error
RunningPipelineRuns logs the number of PipelineRuns running right now returns an error if its failed to log the metrics