mirror of
https://github.com/containers/podman.git
synced 2025-05-29 14:06:29 +08:00
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:
@ -555,7 +555,7 @@ func ValidatePullType(pullType string) (PullType, error) {
|
|||||||
switch pullType {
|
switch pullType {
|
||||||
case "always":
|
case "always":
|
||||||
return PullImageAlways, nil
|
return PullImageAlways, nil
|
||||||
case "missing":
|
case "missing", "IfNotPresent":
|
||||||
return PullImageMissing, nil
|
return PullImageMissing, nil
|
||||||
case "never":
|
case "never":
|
||||||
return PullImageNever, nil
|
return PullImageNever, nil
|
||||||
|
Reference in New Issue
Block a user