From 81107c3e986956601869c687a17ba690bb551fa9 Mon Sep 17 00:00:00 2001 From: Dawn Chen Date: Thu, 13 Nov 2014 15:23:44 -0800 Subject: [PATCH] Change the default Pull policy to PullIfNotPresent. --- pkg/api/helpers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/api/helpers.go b/pkg/api/helpers.go index ac11833b19..a4e9aab3a7 100644 --- a/pkg/api/helpers.go +++ b/pkg/api/helpers.go @@ -21,10 +21,6 @@ import ( ) func IsPullAlways(p PullPolicy) bool { - // Default to pull always - if len(p) == 0 { - return true - } return pullPoliciesEqual(p, PullAlways) } @@ -33,6 +29,10 @@ func IsPullNever(p PullPolicy) bool { } func IsPullIfNotPresent(p PullPolicy) bool { + // Default to pull if not present + if len(p) == 0 { + return true + } return pullPoliciesEqual(p, PullIfNotPresent) }