From d9e3fbff94945f46a7f241b6424034d8205fdfda Mon Sep 17 00:00:00 2001 From: Abu Kashem Date: Wed, 7 Jul 2021 14:51:12 -0400 Subject: [PATCH] apf: fix bootstrap ensurer log message --- pkg/registry/flowcontrol/rest/storage_flowcontrol.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/registry/flowcontrol/rest/storage_flowcontrol.go b/pkg/registry/flowcontrol/rest/storage_flowcontrol.go index c49eb6cf411..1a852ef7d1b 100644 --- a/pkg/registry/flowcontrol/rest/storage_flowcontrol.go +++ b/pkg/registry/flowcontrol/rest/storage_flowcontrol.go @@ -129,7 +129,7 @@ func ensureAPFBootstrapConfiguration(hookContext genericapiserver.PostStartHookC // we have successfully initialized the bootstrap configuration, now we // spin up a goroutine which reconciles the bootstrap configuration periodically. go func() { - err := wait.PollImmediateUntil( + wait.PollImmediateUntil( time.Minute, func() (bool, error) { if err := ensure(clientset); err != nil { @@ -138,9 +138,7 @@ func ensureAPFBootstrapConfiguration(hookContext genericapiserver.PostStartHookC // always auto update both suggested and mandatory configuration return false, nil }, hookContext.StopCh) - if err != nil { - klog.ErrorS(err, "APF bootstrap ensurer is exiting") - } + klog.Info("APF bootstrap ensurer is exiting") }() return nil