From 7fe3a8248209fa5d23aca9c4b865353790148b15 Mon Sep 17 00:00:00 2001 From: Peter Wilcsinszky Date: Wed, 28 Feb 2024 14:38:08 +0100 Subject: [PATCH] fix: remove requeue after because it halts all other events from being reconciled note: the rate limiter will protect us anyways Signed-off-by: Peter Wilcsinszky --- pkg/resources/fluentd/fluentd.go | 3 +-- pkg/resources/syslogng/syslogng.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/resources/fluentd/fluentd.go b/pkg/resources/fluentd/fluentd.go index a7e099537..9dc6b6d78 100644 --- a/pkg/resources/fluentd/fluentd.go +++ b/pkg/resources/fluentd/fluentd.go @@ -17,7 +17,6 @@ package fluentd import ( "context" "fmt" - "time" "emperror.dev/errors" "github.com/cisco-open/operator-tools/pkg/reconciler" @@ -203,7 +202,7 @@ func (r *Reconciler) Reconcile(ctx context.Context) (*reconcile.Result, error) { } else { r.Log.Info("still waiting for the configcheck result...") } - return &reconcile.Result{RequeueAfter: time.Minute}, nil + return &reconcile.Result{Requeue: true}, nil } } } diff --git a/pkg/resources/syslogng/syslogng.go b/pkg/resources/syslogng/syslogng.go index c01d5d035..162f0e285 100644 --- a/pkg/resources/syslogng/syslogng.go +++ b/pkg/resources/syslogng/syslogng.go @@ -16,7 +16,6 @@ package syslogng import ( "context" - "time" "emperror.dev/errors" "github.com/cisco-open/operator-tools/pkg/reconciler" @@ -184,7 +183,7 @@ func (r *Reconciler) Reconcile(ctx context.Context) (*reconcile.Result, error) { } else { r.Log.Info("still waiting for the configcheck result...") } - return &reconcile.Result{RequeueAfter: time.Minute}, nil + return &reconcile.Result{Requeue: true}, nil } } }