Skip to content

Commit

Permalink
Bug: crash-looping config-policy-controller-uninstaller
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Rae Kim <yikim@redhat.com>
  • Loading branch information
yiraeChristineKim committed May 8, 2023
1 parent 1fa8cc0 commit 6ba4284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/configurationpolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ba4284

Please sign in to comment.