summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2020-07-14 14:45:16 +0000
committerMatthew Heon <matthew.heon@pm.me>2020-07-22 14:18:53 -0400
commit11f716094cf2f6654d0ea4ee75e2a0bedb18900c (patch)
treee71669a3c96394307451611ab3f1a49d09d42436 /pkg
parentded829cddecdb94e3b994cf7d8bea8559e1e55c3 (diff)
downloadpodman-11f716094cf2f6654d0ea4ee75e2a0bedb18900c.tar.gz
podman-11f716094cf2f6654d0ea4ee75e2a0bedb18900c.tar.bz2
podman-11f716094cf2f6654d0ea4ee75e2a0bedb18900c.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')
-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 7a8d64e7c..9eeb116c0 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