Skip to content

Commit

Permalink
correct platform parameter to OS/ARCH to fix image pull problem (#26)
Browse files Browse the repository at this point in the history
* correct platform parameter to OS/ARCH to fix image pull problem

* fix type mismatch

* fix type mismatch
  • Loading branch information
dustinblack committed Nov 3, 2023
1 parent 412798e commit be08b6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
}
Expand Down

0 comments on commit be08b6d

Please sign in to comment.