labeling

package
v0.0.0-...-01a409d Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WfIdLabel        = "wf_id"
	WfNameLabel      = "wf_name"
	WfAllRunsOn      = "wf_runs_on"
	CrNameLabel      = "cr_name"
	CrNamespaceLabel = "cr_namespace"
	CrRepoLabel      = "cr_repo"
	CrOwnerLabel     = "cr_owner"
)

Variables

View Source
var JobLabelsForPrometheus []string = []string{WfIdLabel, WfNameLabel, WfAllRunsOn}

Functions

func FilterBySelector

func FilterBySelector(runs []*github.WorkflowRun, wf *config.GithubWorkflowConfig, wfInfo map[int64]utils.WorkflowInfo, selector labels.Selector) ([]*github.WorkflowRun, map[string][]string)

func GetLabelsForOutput

func GetLabelsForOutput(lbls map[string][]string) ([]string, map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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