From 259d02ed3724ca32dd58fffca5fee5b3890a6402 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Thu, 28 Nov 2024 08:16:45 -0800 Subject: [PATCH] Don't crash loop if ui-server can't connect to b3 api Signed-off-by: Tamal Saha --- pkg/apiserver/apiserver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index 287338e31..e48e5d633 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -282,7 +282,8 @@ func (c completedConfig) New(ctx context.Context) (*UIServer, error) { if err := mgr.Add(manager.RunnableFunc(func(ctx context.Context) error { md, err := bc.Identify(cid) if err != nil { - return err + klog.ErrorS(err, "unable to connect to ace api server") + return nil } return clustermeta.UpsertClusterMetadata(mgr.GetClient(), md) })); err != nil {