From 449f2fc0bd6ac93c72a2ffa2e65d5fe207c55073 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Wed, 16 Mar 2022 09:02:57 +0100 Subject: Set rawimage for containers created via play kube This commit set the containers RawImageName to default image name specified in Pod YAML, so the containers could be used via autoupdate feature, which needs the RawImageName to be set. Currently RawImageName is set only for the create/run/clone podman commands. [NO NEW TESTS NEEDED] Signed-off-by: Ondra Machacek --- pkg/domain/infra/abi/play.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg') diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index e16da4ed9..4d8c5a381 100644 --- a/pkg/domain/infra/abi/play.go +++ b/pkg/domain/infra/abi/play.go @@ -462,6 +462,7 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY if err != nil { return nil, err } + specGen.RawImageName = container.Image rtSpec, spec, opts, err := generate.MakeContainer(ctx, ic.Libpod, specGen, false, nil) if err != nil { return nil, err -- cgit v1.2.3-54-g00ecf