Change the default Pull policy to PullIfNotPresent.

This commit is contained in:
Dawn Chen 2014-11-13 15:23:44 -08:00
parent 8c358f0cae
commit 81107c3e98

View File

@ -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)
}