Skip to content

Commit

Permalink
Merge pull request openshift#16018 from bparees/image_pullsecrets
Browse files Browse the repository at this point in the history
setup docker pull secrets in image extraction init container
  • Loading branch information
smarterclayton authored Aug 29, 2017
2 parents 47b27d9 + 40d80f0 commit 077983e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/build/controller/strategy/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func (bs *DockerBuildStrategy) CreateBuildPod(build *buildapi.Build) (*v1.Pod, e
ImagePullPolicy: v1.PullIfNotPresent,
Resources: buildutil.CopyApiResourcesToV1Resources(&build.Spec.Resources),
}
setupDockerSecrets(pod, &extractImageContentContainer, build.Spec.Output.PushSecret, strategy.PullSecret, build.Spec.Source.Images)
pod.Spec.InitContainers = append(pod.Spec.InitContainers, extractImageContentContainer)
}
pod.Spec.InitContainers = append(pod.Spec.InitContainers,
Expand Down
1 change: 1 addition & 0 deletions pkg/build/controller/strategy/sti.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func (bs *SourceBuildStrategy) CreateBuildPod(build *buildapi.Build) (*v1.Pod, e
ImagePullPolicy: v1.PullIfNotPresent,
Resources: buildutil.CopyApiResourcesToV1Resources(&build.Spec.Resources),
}
setupDockerSecrets(pod, &extractImageContentContainer, build.Spec.Output.PushSecret, strategy.PullSecret, build.Spec.Source.Images)
pod.Spec.InitContainers = append(pod.Spec.InitContainers, extractImageContentContainer)
}
pod.Spec.InitContainers = append(pod.Spec.InitContainers,
Expand Down

0 comments on commit 077983e

Please sign in to comment.