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>
This commit is contained in:
Tristan Cacqueray
2020-07-14 14:45:16 +00:00
parent d83077b16c
commit a8f583a111

View File

@ -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