From cbc9d41229f56fa832a8d450ef17a0f07e7f8abf Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 7 Jul 2022 14:08:32 +0200 Subject: [PATCH] [CI:DOCS] improve pull-policy documentation Going through containers/podman/issues/14846 let me improve the documentation here so it can be copied over to the man pages of Podman and Buildah. Signed-off-by: Valentin Rothberg --- pkg/config/pull_policy.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/config/pull_policy.go b/pkg/config/pull_policy.go index c85227fe4..be6030fdb 100644 --- a/pkg/config/pull_policy.go +++ b/pkg/config/pull_policy.go @@ -15,18 +15,18 @@ import ( type PullPolicy int const ( - // Always pull the image. + // Always pull the image and throw an error if the pull fails. PullPolicyAlways PullPolicy = iota // Pull the image only if it could not be found in the local containers - // storage. + // storage. Throw an error if no image could be found and the pull fails. PullPolicyMissing // Never pull the image but use the one from the local containers - // storage. + // storage. Throw an error if no image could be found. PullPolicyNever - // Pull if the image on the registry is new than the one in the local + // Pull if the image on the registry is newer than the one in the local // containers storage. An image is considered to be newer when the // digests are different. Comparing the time stamps is prone to - // errors. + // errors. Pull errors are suppressed if a local image was found. PullPolicyNewer // Ideally this should be the first `ioata` but backwards compatibility