From d1d72ed4c8414bda5cb6a0a3370764ccb80a1ba7 Mon Sep 17 00:00:00 2001 From: Dustin Black Date: Fri, 3 Nov 2023 11:51:14 +0100 Subject: [PATCH] correct platform parameter to OS/ARCH to fix image pull problem (#26) * correct platform parameter to OS/ARCH to fix image pull problem * fix type mismatch * fix type mismatch --- connector.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connector.go b/connector.go index 4899783..d09dc28 100644 --- a/connector.go +++ b/connector.go @@ -74,6 +74,7 @@ func (c *Connector) pullImage(_ context.Context, image string) error { } if c.config.Deployment.ImagePullPolicy == ImagePullPolicyIfNotPresent { imageExists, err := c.podmanCliWrapper.ImageExists(image) + podmanPlatform := c.config.Podman.ImageOS + "/" + c.config.Podman.ImageArchitecture if err != nil { return err } @@ -85,7 +86,7 @@ func (c *Connector) pullImage(_ context.Context, image string) error { // TODO:fix default values in configuration c.logger.Debugf("Pulling image: %s", image) - if err := c.podmanCliWrapper.PullImage(image, &c.config.Podman.ImageArchitecture); err != nil { + if err := c.podmanCliWrapper.PullImage(image, &podmanPlatform); err != nil { return err } }