mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
apf: fix bootstrap ensurer log message
This commit is contained in:
parent
006d5b8539
commit
d9e3fbff94
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user