From cc40d1ed2ec278833f8b07cca65beb8a7baacea7 Mon Sep 17 00:00:00 2001 From: xiekeyang Date: Mon, 16 Jul 2018 10:48:47 +0800 Subject: [PATCH] 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. --- buildermgr/envwatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildermgr/envwatcher.go b/buildermgr/envwatcher.go index 93ad0f65..ee80b867 100644 --- a/buildermgr/envwatcher.go +++ b/buildermgr/envwatcher.go @@ -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{ {