Commit ec51ec3e authored by Daniel Smith's avatar Daniel Smith

Merge pull request #2360 from dchen1107/cleanup

Change the default Pull policy to PullIfNotPresent.
parents 8c358f0c 81107c3e
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment