diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-09 10:28:21 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-10 16:13:33 -0500 |
commit | 19a475906612b603b11fbbf6ee6a6978a4bd9586 (patch) | |
tree | 6ae0507c33be21bcc265a547322f94fc4a00db7f /libpod/kube.go | |
parent | 87cd4b698cea28ef99b3b3326309b068b9aa7f04 (diff) | |
download | podman-19a475906612b603b11fbbf6ee6a6978a4bd9586.tar.gz podman-19a475906612b603b11fbbf6ee6a6978a4bd9586.tar.bz2 podman-19a475906612b603b11fbbf6ee6a6978a4bd9586.zip |
Use the InfraImage defined in containers.conf
Remove hard code use of the DefaultInfraImage and rely on
getting this from containers.conf.
Fixes: https://github.com/containers/podman/issues/12771
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/kube.go')
-rw-r--r-- | libpod/kube.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/kube.go b/libpod/kube.go index d667616d0..f465fc776 100644 --- a/libpod/kube.go +++ b/libpod/kube.go @@ -595,7 +595,7 @@ func containerToV1Container(ctx context.Context, c *Container) (v1.Container, [] // pause one and make sure it's in the storage by pulling it down if // missing. if image == "" && c.IsInfra() { - image = config.DefaultInfraImage + image = c.runtime.config.Engine.InfraImage if _, err := c.runtime.libimageRuntime.Pull(ctx, image, config.PullPolicyMissing, nil); err != nil { return kubeContainer, nil, nil, nil, err } |