mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #2360 from dchen1107/cleanup
Change the default Pull policy to PullIfNotPresent.
This commit is contained in:
commit
ec51ec3e90
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user