Skip to content

Commit

Permalink
Add CustomRun to register.go
Browse files Browse the repository at this point in the history
This allows to reference the resource path in a client

Signed-off-by: Sascha Schwarze <[email protected]>
  • Loading branch information
SaschaSchwarze0 authored and tekton-robot committed Feb 22, 2023
1 parent c69c792 commit ac225de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/apis/pipeline/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ const (
// RunKey is used as the label identifier for a Run
RunKey = GroupName + "/run"

// CustomRunKey is used as the label identifier for a CustomRun
CustomRunKey = GroupName + "/customRun"

// MemberOfLabelKey is used as the label identifier for a PipelineTask
// Set to Tasks/Finally depending on the position of the PipelineTask
MemberOfLabelKey = GroupName + "/memberOf"
Expand Down Expand Up @@ -85,4 +88,10 @@ var (
Group: GroupName,
Resource: "pipelineresources",
}

// CustomRunResource represents a Tekton CustomRun
CustomRunResource = schema.GroupResource{
Group: GroupName,
Resource: "customruns",
}
)

0 comments on commit ac225de

Please sign in to comment.