Skip to content

Commit

Permalink
Merge pull request #7419 from bparees/forcepull
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Feb 19, 2016
2 parents dd651fa + b530a73 commit c040447
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 c040447

Please sign in to comment.