mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-07 23:42:20 +02:00
Compare commits
1 Commits
6ca7e5b82b
...
d6f2dc9e69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6f2dc9e69 |
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user