issue1875: make the force pull option configurable in the sti build strategy definition; various upstream documentation clarifications / enhancements; comments around reqs for coding/testing changes that run in the builder pod; fixes after merging (changes lost); incorporate comments from Ben
@@ -249,6 +249,9 @@ type DockerBuildStrategy struct {
// Env contains additional environment variables you want to pass into a builder container
Env []kapi.EnvVar `json:"env,omitempty" description:"additional environment variables you want to pass into a builder container"`
+
+ // ForcePull describes if the builder should pull the images from registry prior to building.
+ ForcePull bool `json:"forcePull,omitempty" description:"forces the source build to pull the image if true"`
}
// SourceBuildStrategy defines input parameters specific to an Source build.
@@ -270,6 +273,9 @@ type SourceBuildStrategy struct {
// Incremental flag forces the Source build to do incremental builds if true.
Incremental bool `json:"incremental,omitempty" description:"forces the source build to do incremental builds if true"`
+
+ // ForcePull describes if the builder should pull the images from registry prior to building.
+ ForcePull bool `json:"forcePull,omitempty" description:"forces the source build to pull the image if true"`
}
// BuildOutput is input to a build strategy and describes the Docker image that the strategy
