summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorOndra Machacek <omachace@redhat.com>2022-03-16 09:02:57 +0100
committerOndra Machacek <omachace@redhat.com>2022-03-16 13:37:44 +0100
commit449f2fc0bd6ac93c72a2ffa2e65d5fe207c55073 (patch)
tree45b55f637a6cd1d8ac11da4de7c16b5b0077b231 /pkg/domain/infra
parentfa33f3527f14edbf7407ba3ba482ef839debfb39 (diff)
downloadpodman-449f2fc0bd6ac93c72a2ffa2e65d5fe207c55073.tar.gz
podman-449f2fc0bd6ac93c72a2ffa2e65d5fe207c55073.tar.bz2
podman-449f2fc0bd6ac93c72a2ffa2e65d5fe207c55073.zip
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 <omachace@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/play.go1
1 files changed, 1 insertions, 0 deletions
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