Skip to content

Commit 736a9ad

Browse files
authored
chore: Log warning in test command on unsupported container platform (#397)
Signed-off-by: jannfis <[email protected]>
1 parent 99ca35a commit 736a9ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ argocd-image-updater test nginx --allow-tags '^1.19.\d+(\-.*)*$' --update-strate
9898
if err != nil {
9999
logCtx.Fatalf("Could not parse platform %s: %v", platform, err)
100100
}
101+
if os != "linux" && os != "windows" {
102+
log.Warnf("Target platform is '%s/%s', but that's not a supported container platform. Forgot --platforms?", os, arch)
103+
}
101104
vc.Options = vc.Options.WithPlatform(os, arch, variant)
102105
}
103106
vc.Options = vc.Options.WithMetadata(vc.Strategy.NeedsMetadata())

0 commit comments

Comments
 (0)