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,