Ability to pull builder image from private registry (#1431)

This commit is contained in:
Ta-Ching Chen
2019-11-24 05:17:56 +08:00
committed by GitHub
parent 5c2f0c5f4a
commit 1a5537f4ba
4 changed files with 13 additions and 27 deletions
+1 -5
View File
@@ -404,11 +404,7 @@ func (gp *GenericPool) createPool() error {
},
}
podspec, err := util.ApplyImagePullSecret(gp.kubernetesClient, gp.env.Spec.ImagePullSecret, gp.namespace, pod.Spec)
if err != nil {
return errors.Wrapf(err, "failed to apply image pull secret for env '%v'", gp.env.Metadata.Name)
}
pod.Spec = *podspec
pod.Spec = *(util.ApplyImagePullSecret(gp.env.Spec.ImagePullSecret, pod.Spec))
deployment := &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{