From a8f583a111fa6fece32171def78c93e5a77dc940 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Tue, 14 Jul 2020 14:45:16 +0000 Subject: 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 --- pkg/util/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf