Skip to content

Commit

Permalink
setup docker pull secrets in image extraction init container
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Aug 28, 2017
1 parent 26b5a8c commit 40d80f0
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 40d80f0

Please sign in to comment.