Compare commits

..

1 Commits

Author SHA1 Message Date
Gabriele Fedi
d6f2dc9e69
Merge f754429701 into 4a94cb9dae 2026-04-07 07:08:52 +00:00

View File

@ -91,8 +91,11 @@ func (c *CatalogMaintenanceRunnable) cycle(ctx context.Context) (time.Duration,
}
enabledPlugins := cnpgv1.GetPluginConfigurationEnabledPluginNames(cluster.Spec.Plugins)
if enabledForBackups := slices.Contains(enabledPlugins, metadata.PluginName); !enabledForBackups {
contextLogger.Debug("Skipping maintenance cycle: plugin is configured for restore only")
enabledForBackups := slices.Contains(enabledPlugins, metadata.PluginName)
if !enabledForBackups {
contextLogger.Debug("Skipping maintenance cycle." +
" Plugin is not enabled for backups")
return 0, nil
}