-
Notifications
You must be signed in to change notification settings - Fork 787
/
constants.go
37 lines (30 loc) · 975 Bytes
/
constants.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
package apps
// AppType defines the type of the App
type AppType uint32
// String returns a string representation of the App type
func (a AppType) String() string {
switch a {
case Controller:
return "controller"
case PipelineExtension:
return "pipeline-extension"
default:
return "unknown"
}
}
// These are the different App types
const (
// AppPodTemplateName the name of the pod template to store default settings for pods executing an App extension step
AppPodTemplateName = "app-extension"
// AppTypeLabel label used to store the app type in the App CRD.
AppTypeLabel = "jenkins.io/app-type"
// Controller is an App type which installs a controller into the cluster.
Controller AppType = iota
// PipelineExtension is an App type which wants to modify the build pipeline by being executed as part of the meta pipeline.
PipelineExtension
)
// AllTypes exposes all App types in a slice
var AllTypes = []AppType{
Controller,
PipelineExtension,
}