forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
28 lines (20 loc) · 872 Bytes
/
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
package api
import (
"k8s.io/kubernetes/pkg/api/unversioned"
buildapi "github.com/openshift/origin/pkg/build/api"
)
const BuildOverridesPlugin = "BuildOverrides"
// BuildOverridesConfig controls override settings for builds
type BuildOverridesConfig struct {
unversioned.TypeMeta
// forcePull indicates whether the build strategy should always be set to ForcePull=true
ForcePull bool
// imageLabels is a list of docker labels that are applied to the resulting image.
// If user provided a label in their Build/BuildConfig with the same name as one in this
// list, the user's label will be overwritten.
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
}