change image pull policy of builder manager (#793)

This changes image pull policy from Always to IfNotPresent. The previous
policy forbid customer to use the exact image existing on K8S Node.
And it should be OK to use fixed policy here. Customer need not set policy by
their own.
This commit is contained in:
xiekeyang
2018-07-16 10:48:47 +08:00
committed by Ta-Ching Chen
parent 425e447e5c
commit cc40d1ed2e
+1 -1
View File
@@ -547,7 +547,7 @@ func (envw *environmentWatcher) createBuilderDeployment(env *crd.Environment, ns
fission.MergeContainerSpecs(&apiv1.Container{
Name: "builder",
Image: env.Spec.Builder.Image,
ImagePullPolicy: apiv1.PullAlways,
ImagePullPolicy: apiv1.PullIfNotPresent,
TerminationMessagePath: "/dev/termination-log",
VolumeMounts: []apiv1.VolumeMount{
{