Skip to content

Commit

Permalink
always pull the previous image for s2i builds
Browse files Browse the repository at this point in the history
when doing an incremental build, we always want to ensure we
are using the latest previous image.
  • Loading branch information
bparees committed Feb 18, 2016
1 parent 2e0417c commit b530a73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/build/builder/sti.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,12 @@ func (s *S2IBuilder) Build() error {

if s.build.Spec.Strategy.SourceStrategy.ForcePull {
glog.V(4).Infof("With force pull true, setting policies to %s", s2iapi.PullAlways)
config.PreviousImagePullPolicy = s2iapi.PullAlways
config.BuilderPullPolicy = s2iapi.PullAlways
} else {
glog.V(4).Infof("With force pull false, setting policies to %s", s2iapi.PullIfNotPresent)
config.PreviousImagePullPolicy = s2iapi.PullIfNotPresent
config.BuilderPullPolicy = s2iapi.PullIfNotPresent
}
config.PreviousImagePullPolicy = s2iapi.PullAlways

allowedUIDs := os.Getenv("ALLOWED_UIDS")
glog.V(2).Infof("The value of ALLOWED_UIDS is [%s]", allowedUIDs)
Expand Down

0 comments on commit b530a73

Please sign in to comment.