pendingpipelinerun

package
v0.0.0-...-1ecd751 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceLabel  string = "namespace"
	PendingMetric   string = "stonesoup_pending_pipelineruns_total"
	AbandonedMetric string = "stonesoup_abandoned_pipelineruns_total"
)
View Source
const (

	//TODO move to API folder, along with config obj changes
	AbandonedAnnotation = "openshift-pipelines/cancelled-to-abandon"
	AbandonedReason     = "Abandoned"
	AbandonedMessage    = "PipelineRun %s:%s abandoned because of Pod Quota pressure"
)

Variables

This section is empty.

Functions

func CreatePipelineRunWithMutations

func CreatePipelineRunWithMutations(ctx context.Context, client client.Client, run *v1beta1.PipelineRun) error

func InitPrometheus

func InitPrometheus(client client.Client)

func MutatePipelineRun

func MutatePipelineRun(run *v1beta1.PipelineRun) *v1beta1.PipelineRun

func PipelineRunStats

func PipelineRunStats(prList *v1beta1.PipelineRunList) (map[string]Counts, error)

func SetupPRReconcilerWithManager

func SetupPRReconcilerWithManager(mgr ctrl.Manager) error

Types

type Counts

type Counts struct {
	ActiveCount    int
	PendingCount   int
	AbandonedCount int
	DoneCount      int
	TotalCount     int
}

type ReconcilePendingPipelineRun

type ReconcilePendingPipelineRun struct {
	// contains filtered or unexported fields
}

func SetupClientAndPRReconciler

func SetupClientAndPRReconciler(useOpenshift bool, objs ...runtimeclient.Object) (runtimeclient.Client, *ReconcilePendingPipelineRun)

func (*ReconcilePendingPipelineRun) Reconcile

Jump to

Keyboard shortcuts

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