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 -2
View File
@@ -495,7 +495,6 @@ func (envw *environmentWatcher) createBuilderDeployment(env *fv1.Environment, ns
}
finalPodSpec, err := util.MergePodSpec(&podSpec, env.Spec.Builder.PodSpec)
if err != nil {
return nil, err
}
@@ -516,7 +515,7 @@ func (envw *environmentWatcher) createBuilderDeployment(env *fv1.Environment, ns
Labels: sel,
Annotations: podAnnotations,
},
Spec: *finalPodSpec,
Spec: *(util.ApplyImagePullSecret(env.Spec.ImagePullSecret, *finalPodSpec)),
},
},
}