From 729666647c75d86526c91e2f1089e1278295ae74 Mon Sep 17 00:00:00 2001 From: Chris Richardson Date: Mon, 7 Jul 2025 20:22:40 -0400 Subject: [PATCH] comment out --- internal/controller/locustcluster_controller.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/controller/locustcluster_controller.go b/internal/controller/locustcluster_controller.go index 7cfc99f..6dd65dd 100644 --- a/internal/controller/locustcluster_controller.go +++ b/internal/controller/locustcluster_controller.go @@ -61,6 +61,12 @@ func (r *LocustClusterReconciler) Reconcile(ctx context.Context, req ctrl.Reques // locustCluster, err := GetLocustCluster(r.Client, ctx, req.Namespace, req.Name) _, err := GetLocustCluster(r.Client, ctx, req.Namespace, req.Name) if err != nil { + if apierrors.IsForbidden(err) { + r.Log.Info("Forbidden") + } + if apierrors.IsUnauthorized(err) { + r.Log.Info("Unathed") + } if apierrors.IsNotFound(err) { r.Log.Info("LocustCluster not found") // logf.Log.Info("LocustCluster not found", "LocustClusterName", req.Name,