-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
register.go
99 lines (81 loc) · 3.02 KB
/
register.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
Copyright 2019 The Tekton Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package pipeline
import "k8s.io/apimachinery/pkg/runtime/schema"
const (
// GroupName is the Kubernetes resource group name for Pipeline types.
GroupName = "tekton.dev"
// ClusterTaskLabelKey is used as the label identifier for a ClusterTask
ClusterTaskLabelKey = GroupName + "/clusterTask"
// StepActionLabelKey is used as the label identifier for a StepAction
StepActionLabelKey = GroupName + "/stepAction"
// TaskLabelKey is used as the label identifier for a Task
TaskLabelKey = GroupName + "/task"
// TaskRunLabelKey is used as the label identifier for a TaskRun
TaskRunLabelKey = GroupName + "/taskRun"
// PipelineLabelKey is used as the label identifier for a Pipeline
PipelineLabelKey = GroupName + "/pipeline"
// PipelineRunLabelKey is used as the label identifier for a PipelineRun
PipelineRunLabelKey = GroupName + "/pipelineRun"
// PipelineTaskLabelKey is used as the label identifier for a PipelineTask
PipelineTaskLabelKey = GroupName + "/pipelineTask"
// 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"
)
var (
// StepActionResource represents a Tekton StepAction
StepActionResource = schema.GroupResource{
Group: GroupName,
Resource: "stepactions",
}
// TaskResource represents a Tekton Task
TaskResource = schema.GroupResource{
Group: GroupName,
Resource: "tasks",
}
// ClusterTaskResource represents a Tekton ClusterTask
ClusterTaskResource = schema.GroupResource{
Group: GroupName,
Resource: "clustertasks",
}
// TaskRunResource represents a Tekton TaskRun
TaskRunResource = schema.GroupResource{
Group: GroupName,
Resource: "taskruns",
}
// RunResource represents a Tekton Run
RunResource = schema.GroupResource{
Group: GroupName,
Resource: "runs",
}
// PipelineResource represents a Tekton Pipeline
PipelineResource = schema.GroupResource{
Group: GroupName,
Resource: "pipelines",
}
// PipelineRunResource represents a Tekton PipelineRun
PipelineRunResource = schema.GroupResource{
Group: GroupName,
Resource: "pipelineruns",
}
// CustomRunResource represents a Tekton CustomRun
CustomRunResource = schema.GroupResource{
Group: GroupName,
Resource: "customruns",
}
)