From a4414d1007dedaec4fdb7a5a2597d3705d7ceeba Mon Sep 17 00:00:00 2001 From: Adrian Lai Date: Wed, 26 Apr 2023 23:15:49 +0100 Subject: [PATCH] Fix kind image loading for MacOS See: https://github.com/kubernetes-sigs/kind/pull/2957 --- pkg/publish/kind/write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/publish/kind/write.go b/pkg/publish/kind/write.go index 7ad42dba10..72d542b0ea 100644 --- a/pkg/publish/kind/write.go +++ b/pkg/publish/kind/write.go @@ -69,7 +69,7 @@ func Write(ctx context.Context, tag name.Tag, img v1.Image) error { }) var buf bytes.Buffer - cmd := n.CommandContext(ctx, "ctr", "--namespace=k8s.io", "images", "import", "-").SetStdin(pr) + cmd := n.CommandContext(ctx, "ctr", "--namespace=k8s.io", "images", "import", "--all-platforms", "-").SetStdin(pr) cmd.SetStdout(&buf) cmd.SetStderr(&buf) if err := cmd.Run(); err != nil {