apf: fix bootstrap ensurer log message

This commit is contained in:
Abu Kashem 2021-07-07 14:51:12 -04:00
parent 006d5b8539
commit d9e3fbff94
No known key found for this signature in database
GPG Key ID: 33A4FA7088DB68A9

View File

@ -129,7 +129,7 @@ func ensureAPFBootstrapConfiguration(hookContext genericapiserver.PostStartHookC
// we have successfully initialized the bootstrap configuration, now we // we have successfully initialized the bootstrap configuration, now we
// spin up a goroutine which reconciles the bootstrap configuration periodically. // spin up a goroutine which reconciles the bootstrap configuration periodically.
go func() { go func() {
err := wait.PollImmediateUntil( wait.PollImmediateUntil(
time.Minute, time.Minute,
func() (bool, error) { func() (bool, error) {
if err := ensure(clientset); err != nil { if err := ensure(clientset); err != nil {
@ -138,9 +138,7 @@ func ensureAPFBootstrapConfiguration(hookContext genericapiserver.PostStartHookC
// always auto update both suggested and mandatory configuration // always auto update both suggested and mandatory configuration
return false, nil return false, nil
}, hookContext.StopCh) }, hookContext.StopCh)
if err != nil { klog.Info("APF bootstrap ensurer is exiting")
klog.ErrorS(err, "APF bootstrap ensurer is exiting")
}
}() }()
return nil return nil