From 2d4735a8e5db0de09443025b4314067edcbde8a7 Mon Sep 17 00:00:00 2001 From: RokibulHasan7 Date: Fri, 24 Oct 2025 17:22:57 +0600 Subject: [PATCH 1/2] Replace panic with error log in IsOpenClusterSpoke to avoid unnecessary crashes Signed-off-by: RokibulHasan7 --- cluster/ocm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/ocm.go b/cluster/ocm.go index 755270809..81c084581 100644 --- a/cluster/ocm.go +++ b/cluster/ocm.go @@ -50,7 +50,7 @@ func IsOpenClusterSpoke(kc client.Reader) bool { err := kc.List(context.TODO(), &list) if err != nil { if !meta.IsNoMatchError(err) && !apierrors.IsNotFound(err) { - panic(err) // panic if 403 (missing rbac) + klog.Errorln(err) } } return len(list.Items) > 0 From 539e46a484c8be8e93c853de47a21b912ba951e3 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Fri, 24 Oct 2025 19:19:17 +0530 Subject: [PATCH 2/2] Update Signed-off-by: Tamal Saha --- api/v1/cluster_enum.go | 2 +- api/v1/object_enum.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/cluster_enum.go b/api/v1/cluster_enum.go index 5bc4ce87c..c437b3929 100644 --- a/api/v1/cluster_enum.go +++ b/api/v1/cluster_enum.go @@ -1,5 +1,5 @@ // Code generated by go-enum DO NOT EDIT. -// Version: v0.9.1 +// Version: v0.9.2 // Built By: go install diff --git a/api/v1/object_enum.go b/api/v1/object_enum.go index e82683596..ba68f4448 100644 --- a/api/v1/object_enum.go +++ b/api/v1/object_enum.go @@ -1,5 +1,5 @@ // Code generated by go-enum DO NOT EDIT. -// Version: v0.9.1 +// Version: v0.9.2 // Built By: go install