Skip to content

Commit

Permalink
"kn workflow run" freezes when pulling registry.redhat.io images
Browse files Browse the repository at this point in the history
  • Loading branch information
treblereel committed Oct 17, 2024
1 parent 677845c commit 39acfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kn-plugin-workflow/pkg/common/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func pullDockerImage(cli *client.Client, ctx context.Context) (io.ReadCloser, er
// of an image.
imageNameWithoutRegistry := strings.Split(metadata.DevModeImage, "/")
imageFilters := filters.NewArgs()
imageFilters.Add("reference", fmt.Sprintf("*/%s", imageNameWithoutRegistry[len(imageNameWithoutRegistry)-1]))
imageFilters.Add("reference", fmt.Sprintf("*/*/%s", imageNameWithoutRegistry[len(imageNameWithoutRegistry)-1]))
images, err := cli.ImageList(ctx, types.ImageListOptions{Filters: imageFilters})
if err != nil {
return nil, fmt.Errorf("error listing images: %s", err)
Expand Down

0 comments on commit 39acfa1

Please sign in to comment.