pub fn effective_pull_policy(
image: &Reference,
spec_policy: PullPolicy,
) -> PullPolicyExpand description
Resolve the effective pull policy for a deploy/scale operation.
The serde default for pull_policy is IfNotPresent (preserved for
backwards compatibility). When the user has not opted out (i.e. the policy
is the default IfNotPresent) AND the image tag is :latest or unspecified,
we auto-upgrade to Newer so freshly-pushed :latest images get picked up
on redeploy. Users who explicitly want immutable behaviour on a :latest
tag can set pull_policy: never.