diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-09 10:12:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-09 10:12:22 -0400 |
commit | d477fe5caeaa9205ccc0a1f70dd46ea4dbe8a1ba (patch) | |
tree | 388baefdc58522896f1674b6a96dbf3ae4b65207 /pkg/domain/infra/abi | |
parent | 7ee5b29b0701ea5279329a0a699ad0f96cfe22aa (diff) | |
parent | a1cab358cc861862baab760120d8d91a937c46f2 (diff) | |
download | podman-d477fe5caeaa9205ccc0a1f70dd46ea4dbe8a1ba.tar.gz podman-d477fe5caeaa9205ccc0a1f70dd46ea4dbe8a1ba.tar.bz2 podman-d477fe5caeaa9205ccc0a1f70dd46ea4dbe8a1ba.zip |
Merge pull request #11447 from chenzhiwei/respect-config
fix play kube can't use infra_image in config file
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r-- | pkg/domain/infra/abi/play.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index c9a6930f7..c6d5dcc3d 100644 --- a/pkg/domain/infra/abi/play.go +++ b/pkg/domain/infra/abi/play.go @@ -269,12 +269,9 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY } if podOpt.Infra { - imagePull := config.DefaultInfraImage - if podOpt.InfraImage != config.DefaultInfraImage && podOpt.InfraImage != "" { - imagePull = podOpt.InfraImage - } + containerConfig := util.DefaultContainerConfig() - pulledImages, err := pullImage(ic, writer, imagePull, options, config.PullPolicyNewer) + pulledImages, err := pullImage(ic, writer, containerConfig.Engine.InfraImage, options, config.PullPolicyNewer) if err != nil { return nil, err } |