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

Closes #539

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2025-09-22 10:26:43 +02:00 committed by GitHub
parent eced5ea2c6
commit a29aa1c91a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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