fix: remove redundant namespace from error log

The contextLogger already carries the namespace from the WithValues
call at the top of Reconcile.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2026-04-10 17:12:46 +02:00
parent 176b55de78
commit bedd662088
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038

View File

@ -90,7 +90,7 @@ func (r *ObjectStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request)
if err := r.reconcileRoleRules(ctx, role, objectStoreNames); err != nil {
contextLogger.Error(err, "Failed to reconcile RBAC for role",
"roleName", role.Name, "namespace", role.Namespace)
"roleName", role.Name)
errs = append(errs, fmt.Errorf("while reconciling role %s: %w", role.Name, err))
}
}