Skip to content

Commit

Permalink
Fix kind image loading for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
aidy authored and imjasonh committed Nov 22, 2023
1 parent 2e9e58b commit 59a676e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/publish/kind/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/publish/kind/write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestWrite(t *testing.T) {
}
c := n.cmds[0]

if got, want := c.cmd, "ctr --namespace=k8s.io images import -"; got != want {
if got, want := c.cmd, "ctr --namespace=k8s.io images import --all-platforms -"; got != want {
t.Fatalf("c.cmd = %s, want %s", got, want)
}
}
Expand Down

0 comments on commit 59a676e

Please sign in to comment.