Skip to content

Commit

Permalink
Don't crash loop if ui-server can't connect to b3 api (#348)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Nov 28, 2024
1 parent 1b0e230 commit 0915144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0915144

Please sign in to comment.