Documentation ¶
Index ¶
- func CollectFailedTasksLogSnippet(ctx context.Context, cs *params.Run, kinteract kubeinteraction.Interface, ...) map[string]pacv1alpha1.TaskInfos
- func GetStatusFromTaskStatusOrFromAsking(ctx context.Context, pr *tektonv1.PipelineRun, run *params.Run) map[string]*tektonv1.PipelineRunTaskRunStatus
- func GetTaskRunStatusForPipelineTask(ctx context.Context, client versioned.Interface, ns string, ...) (*tektonv1.TaskRunStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectFailedTasksLogSnippet ¶
func CollectFailedTasksLogSnippet(ctx context.Context, cs *params.Run, kinteract kubeinteraction.Interface, pr *tektonv1.PipelineRun, numLines int64) map[string]pacv1alpha1.TaskInfos
CollectFailedTasksLogSnippet collects all tasks information we are interested in. should really be in a tektoninteractions package but i lack imagination at the moment.
func GetStatusFromTaskStatusOrFromAsking ¶ added in v0.17.0
func GetStatusFromTaskStatusOrFromAsking(ctx context.Context, pr *tektonv1.PipelineRun, run *params.Run) map[string]*tektonv1.PipelineRunTaskRunStatus
GetStatusFromTaskStatusOrFromAsking will return the status of the taskruns, it would use the embedded one if it's available (pre tekton 0.44.0) or try to get it from the child references.
func GetTaskRunStatusForPipelineTask ¶ added in v0.17.0
func GetTaskRunStatusForPipelineTask(ctx context.Context, client versioned.Interface, ns string, childRef tektonv1.ChildStatusReference) (*tektonv1.TaskRunStatus, error)
GetTaskRunStatusForPipelineTask takes a minimal embedded status child reference and returns the actual TaskRunStatus for the PipelineTask. It returns an error if the child reference's kind isn't TaskRun.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.