/
types.go
57 lines (41 loc) · 1.76 KB
/
types.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
package api
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kapi "k8s.io/kubernetes/pkg/api"
buildapi "github.com/openshift/origin/pkg/build/apis/build"
)
const BuildDefaultsPlugin = "BuildDefaults"
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// BuildDefaultsConfig controls the default information for Builds
type BuildDefaultsConfig struct {
metav1.TypeMeta
// gitHTTPProxy is the location of the HTTPProxy for Git source
GitHTTPProxy string
// gitHTTPSProxy is the location of the HTTPSProxy for Git source
GitHTTPSProxy string
// gitNoProxy is the list of domains for which the proxy should not be used
GitNoProxy string
// env is a set of default environment variables that will be applied to the
// build if the specified variables do not exist on the build
Env []kapi.EnvVar
// sourceStrategyDefaults are default values that apply to builds using the
// source strategy.
SourceStrategyDefaults *SourceStrategyDefaultsConfig
// imageLabels is a list of docker labels that are applied to the resulting image.
// User can override a default label by providing a label with the same name in their
// Build/BuildConfig.
ImageLabels []buildapi.ImageLabel
// nodeSelector is a selector which must be true for the build pod to fit on a node
NodeSelector map[string]string
// annotations are annotations that will be added to the build pod
Annotations map[string]string
// resources defines resource requirements to execute the build.
Resources kapi.ResourceRequirements
}
// SourceStrategyDefaultsConfig contains values that apply to builds using the
// source strategy.
type SourceStrategyDefaultsConfig struct {
// Incremental indicates if s2i build strategies should perform an incremental
// build or not
Incremental *bool
}