From a86d02608b9b1b695fd6b33f128ff79ee1a1384a Mon Sep 17 00:00:00 2001 From: Tyler Gu Date: Fri, 20 Feb 2026 16:03:21 -0600 Subject: [PATCH] Fix the kind image loading issue Signed-off-by: Tyler Gu --- acto/utils/image_helper.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/acto/utils/image_helper.py b/acto/utils/image_helper.py index 196bdd29f..2b538feba 100644 --- a/acto/utils/image_helper.py +++ b/acto/utils/image_helper.py @@ -35,14 +35,30 @@ def prepare_image_archive(images: list[str]) -> str: return archive_path for image in images: + # https://github.com/kubernetes-sigs/kind/issues/3795 subprocess.run( - [ImageHelper.image_tool, "pull", image], + [ + ImageHelper.image_tool, + "pull", + "--platform", + "linux/amd64", + image, + ], stdout=subprocess.DEVNULL, check=True, ) os.makedirs(ImageHelper.image_archive_prefix, exist_ok=True) + # https://github.com/kubernetes-sigs/kind/issues/3795 subprocess.run( - [ImageHelper.image_tool, "image", "save", "-o", archive_path] + [ + ImageHelper.image_tool, + "image", + "save", + "--platform", + "linux/amd64", + "-o", + archive_path, + ] + list(images), stdout=subprocess.DEVNULL, check=True,