diff --git a/controllers/configurationpolicy_controller.go b/controllers/configurationpolicy_controller.go index cb4d509b..baeb4755 100644 --- a/controllers/configurationpolicy_controller.go +++ b/controllers/configurationpolicy_controller.go @@ -219,7 +219,7 @@ func (r *ConfigurationPolicyReconciler) PeriodicallyExecConfigPolicies( policyQueue := make(chan *policyv1.ConfigurationPolicy, len(policiesList.Items)) var wg sync.WaitGroup - if !skipLoop { + if !skipLoop || cleanupImmediately { log.Info("Processing the policies", "count", len(policiesList.Items)) // Initialize the related object map