status

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL