From 736a9ad2d4d3d9ea6553aa80f06e986910892d81 Mon Sep 17 00:00:00 2001 From: jannfis Date: Sun, 13 Mar 2022 20:19:43 +0100 Subject: chore: Log warning in test command on unsupported container platform (#397) Signed-off-by: jannfis --- cmd/test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') diff --git a/cmd/test.go b/cmd/test.go index bbaa5ec..afc9cfb 100644 --- a/cmd/test.go +++ b/cmd/test.go @@ -98,6 +98,9 @@ argocd-image-updater test nginx --allow-tags '^1.19.\d+(\-.*)*$' --update-strate if err != nil { logCtx.Fatalf("Could not parse platform %s: %v", platform, err) } + if os != "linux" && os != "windows" { + log.Warnf("Target platform is '%s/%s', but that's not a supported container platform. Forgot --platforms?", os, arch) + } vc.Options = vc.Options.WithPlatform(os, arch, variant) } vc.Options = vc.Options.WithMetadata(vc.Strategy.NeedsMetadata()) -- cgit v1.2.3