diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-26 12:48:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 12:48:20 +0200 |
commit | 21e1c3175dda40b8fd54985335b4152fe6a6cbd5 (patch) | |
tree | 0758da1c7db8992ccf5be83c7d98cd91d26e72cb /pkg/domain/infra/abi | |
parent | ec5c7c1f6a1898dacddb6cc35802525c288b61ef (diff) | |
parent | c197d19fe8890226f9fe416ece6fa4cbbb7f8108 (diff) | |
download | podman-21e1c3175dda40b8fd54985335b4152fe6a6cbd5.tar.gz podman-21e1c3175dda40b8fd54985335b4152fe6a6cbd5.tar.bz2 podman-21e1c3175dda40b8fd54985335b4152fe6a6cbd5.zip |
Merge pull request #11044 from vrothberg/play
play kube: support capitalized pull policy
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r-- | pkg/domain/infra/abi/play.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index 4782f0d01..d257bad18 100644 --- a/pkg/domain/infra/abi/play.go +++ b/pkg/domain/infra/abi/play.go @@ -277,7 +277,10 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY // registry on localhost. pullPolicy := config.PullPolicyNewer if len(container.ImagePullPolicy) > 0 { - pullPolicy, err = config.ParsePullPolicy(string(container.ImagePullPolicy)) + // Make sure to lower the strings since K8s pull policy + // may be capitalized (see bugzilla.redhat.com/show_bug.cgi?id=1985905). + rawPolicy := string(container.ImagePullPolicy) + pullPolicy, err = config.ParsePullPolicy(strings.ToLower(rawPolicy)) if err != nil { return nil, err } |