fix(logs): log the correct name when on ObjectStore not found error

Closes #539

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2025-09-19 18:26:58 +02:00
parent eced5ea2c6
commit 1351fa14e5
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038

View File

@ -81,8 +81,8 @@ func (r ReconcilerImplementation) Pre(
if apierrs.IsNotFound(err) { if apierrs.IsNotFound(err) {
contextLogger.Info( contextLogger.Info(
"barman object configuration not found, requeuing", "barman object configuration not found, requeuing",
"name", pluginConfiguration.BarmanObjectName, "name", barmanObjectKey.Name,
"namespace", cluster.Namespace) "namespace", barmanObjectKey.Namespace)
return &reconciler.ReconcilerHooksResult{ return &reconciler.ReconcilerHooksResult{
Behavior: reconciler.ReconcilerHooksResult_BEHAVIOR_REQUEUE, Behavior: reconciler.ReconcilerHooksResult_BEHAVIOR_REQUEUE,
}, nil }, nil