Skip to content

Commit eb0b04d

Browse files
committed
Force arch for pulling bundle
1 parent b9a7d0e commit eb0b04d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎internal/deployer/operator.go‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ func (d *Deployer) downloadAndExtractOperatorBundle(ctx context.Context, bundleI
8080
if err := inspectCmd.Run(); err != nil {
8181
// Image doesn't exist locally, pull it
8282
d.logger.Info("Pulling operator bundle image...")
83-
pullCmd := exec.CommandContext(ctx, containerTool, "pull", bundleImage)
83+
// Force amd64 platform for pulling the operator bundle image.
84+
// This is
85+
// 1. fine because bundle images only contain platform-agnostic YAML files and
86+
// 2. required to pull the image after the recent changes to the operator bundle image build process.
87+
pullCmd := exec.CommandContext(ctx, containerTool, "pull", "--platform", "linux/amd64", bundleImage)
8488
if output, err := pullCmd.CombinedOutput(); err != nil {
8589
os.RemoveAll(bundleDir)
8690
d.logger.Dim("Command output:")

0 commit comments

Comments
 (0)