disable linter for NewExponentialBackoffManager

This commit is contained in:
Simon Bein 2023-06-16 16:48:41 +02:00 committed by Mikhail Mazurskiy
parent b2051cfe5a
commit e708f5aeca
No known key found for this signature in database
GPG Key ID: FA7917C48932DD55
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ func (w *ObjectStatusReporter) stopInformer(gkn GroupKindNamespace) {
func (w *ObjectStatusReporter) startInformerWithRetry(ctx context.Context, gkn GroupKindNamespace) {
realClock := &clock.RealClock{}
backoffManager := wait.NewExponentialBackoffManager(800*time.Millisecond, 30*time.Second, 2*time.Minute, 2.0, 1.0, realClock)
// TODO nolint can be removed once https://github.com/kubernetes/kubernetes/issues/118638 is resolved
backoffManager := wait.NewExponentialBackoffManager(800*time.Millisecond, 30*time.Second, 2*time.Minute, 2.0, 1.0, realClock) //nolint:staticcheck
retryCtx, retryCancel := context.WithCancel(ctx)
wait.BackoffUntil(func() {