From f79107d8ecdca3091723f052857b76202ef8dda1 Mon Sep 17 00:00:00 2001 From: Ayato Tokubi Date: Mon, 20 Apr 2026 12:41:46 +0000 Subject: [PATCH] Handle unexpected image configuration media type in getArchitectures Skip images that don't have the expected image configuration media type instead of treating them as errors, since they are artifacts rather than runnable container images. Assisted-by: Claude Code --- pkg/clioptions/imagesetup/images.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/clioptions/imagesetup/images.go b/pkg/clioptions/imagesetup/images.go index 7bbabbbc6c24..8d03736585b7 100644 --- a/pkg/clioptions/imagesetup/images.go +++ b/pkg/clioptions/imagesetup/images.go @@ -138,6 +138,9 @@ func getArchitectures(image string, requiredArchs []string) ([]string, error) { // and there isn't much else to go off of to tell if it's a manifest list or not. if err != nil && strings.Contains(string(output), "the image is a manifest list") { logrus.Debugf(" Image is a manifest list") + } else if err != nil && strings.Contains(string(output), "does not have the expected image configuration media type") { + logrus.Debugf(" Image is an artifact") + return nil, nil } else if err != nil { return nil, fmt.Errorf("failed to check image %s: %w\nOutput: %s", image, err, string(output)) } else {