From e8e5ac7511e16a2be01d0a77ec64dc5736afe92f Mon Sep 17 00:00:00 2001 From: Casey Davenport Date: Tue, 14 Jun 2022 02:36:02 -0700 Subject: [PATCH] Fix waiting for informers to sync in Typha autoscaler (#2015) --- pkg/controller/installation/typha_autoscaler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/installation/typha_autoscaler.go b/pkg/controller/installation/typha_autoscaler.go index 4ab4579dd0..0d82262989 100644 --- a/pkg/controller/installation/typha_autoscaler.go +++ b/pkg/controller/installation/typha_autoscaler.go @@ -130,7 +130,7 @@ func (t *typhaAutoscaler) start() { stopCh := make(chan struct{}) go t.nodeInformer.Run(stopCh) go t.typhaInformer.Run(stopCh) - for !t.nodeInformer.HasSynced() && !t.typhaInformer.HasSynced() { + for !t.nodeInformer.HasSynced() || !t.typhaInformer.HasSynced() { time.Sleep(100 * time.Millisecond) }