aboutsummaryrefslogtreecommitdiff
path: root/pkg/util/utils.go
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2020-07-14 14:45:16 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2020-07-14 17:16:58 +0000
commita8f583a111fa6fece32171def78c93e5a77dc940 (patch)
tree7a62f668b8d5a7b766c2e737abff75666b707409 /pkg/util/utils.go
parentd83077b16c14b05967fa1f92c7067299367a286f (diff)
downloadpodman-a8f583a111fa6fece32171def78c93e5a77dc940.tar.gz
podman-a8f583a111fa6fece32171def78c93e5a77dc940.tar.bz2
podman-a8f583a111fa6fece32171def78c93e5a77dc940.zip
play-kube: add suport for "IfNotPresent" pull type
This change prevents this exception when loading a pod spec using the "IfNotPresent" pull policy: Error: invalid pull type "IfNotPresent" Signed-off-by: Tristan Cacqueray <tdecacqu@redhat.com>
Diffstat (limited to 'pkg/util/utils.go')
-rw-r--r--pkg/util/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/util/utils.go b/pkg/util/utils.go
index 47d3e231d..8a78e3e3c 100644
--- a/pkg/util/utils.go
+++ b/pkg/util/utils.go
@@ -555,7 +555,7 @@ func ValidatePullType(pullType string) (PullType, error) {
switch pullType {
case "always":
return PullImageAlways, nil
- case "missing":
+ case "missing", "IfNotPresent":
return PullImageMissing, nil
case "never":
return PullImageNever, nil