From 0399754ec83f887a4bc709d9cea4fbd9cc725092 Mon Sep 17 00:00:00 2001 From: Leonardo Cecchi Date: Thu, 9 Apr 2026 10:53:32 +0200 Subject: [PATCH] chore: nits Signed-off-by: Leonardo Cecchi --- internal/cnpgi/instance/retention.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/cnpgi/instance/retention.go b/internal/cnpgi/instance/retention.go index 2748463..4cc6457 100644 --- a/internal/cnpgi/instance/retention.go +++ b/internal/cnpgi/instance/retention.go @@ -91,11 +91,8 @@ func (c *CatalogMaintenanceRunnable) cycle(ctx context.Context) (time.Duration, } enabledPlugins := cnpgv1.GetPluginConfigurationEnabledPluginNames(cluster.Spec.Plugins) - enabledForBackups := slices.Contains(enabledPlugins, metadata.PluginName) - - if !enabledForBackups { - contextLogger.Debug("Skipping maintenance cycle." + - " Plugin is not enabled for backups") + if enabledForBackups := slices.Contains(enabledPlugins, metadata.PluginName); !enabledForBackups { + contextLogger.Debug("Skipping maintenance cycle: plugin is configured for restore only") return 0, nil }