fix k8s start up timeout ticker (#5361)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver 2022-05-03 10:06:36 -04:00 committed by GitHub
parent 4ae29a449c
commit c02cd52208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -284,8 +284,6 @@ func (k *Kubernetes) InitKubeCache(ctx context.Context) (onStart func() error, o
checkSyncTicker := time.NewTicker(100 * time.Millisecond)
defer checkSyncTicker.Stop()
for {
timeoutTicker.Reset(timeout)
logTicker.Reset(logDelay)
select {
case <-checkSyncTicker.C:
if k.APIConn.HasSynced() {