From a2f42f1d11f3aab650f9841c9e941f6ea45e8b4b Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Tue, 2 Jun 2026 19:25:46 +0600 Subject: [PATCH] ui-updater: log digest resolution failures instead of exiting When crane.Digest fails, warn to stderr and fall back to the version tag rather than aborting the entire run. Signed-off-by: Tamal Saha --- cmd/ui-updater/main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/ui-updater/main.go b/cmd/ui-updater/main.go index 5305da239..3e1cef8e9 100644 --- a/cmd/ui-updater/main.go +++ b/cmd/ui-updater/main.go @@ -196,11 +196,8 @@ func getDigestOrVersion(repo, bin, ver string) string { ref := fmt.Sprintf("ghcr.io/appscode-charts/%s:%s", bin, ver) digest, err := crane.Digest(ref, crane.WithAuthFromKeychain(authn.DefaultKeychain)) if err != nil { - // Don't silently downgrade from a pinned digest to a mutable tag — - // surface the failure so the operator can decide whether to retry - // or accept the un-pinned version. - fmt.Fprintf(os.Stderr, "ERROR: failed to resolve digest for %s: %v\n", ref, err) - os.Exit(1) + fmt.Fprintf(os.Stderr, "WARN: failed to resolve digest for %s: %v\n", ref, err) + return ver } return digest }