From 11f716094cf2f6654d0ea4ee75e2a0bedb18900c 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(-) (limited to 'pkg/util') 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 -- cgit v1.2.3-54-g00ecf