From fa8ef59339e96ebd9ba6070b6ca1c56393287d7c Mon Sep 17 00:00:00 2001 From: Shaun Crampton Date: Thu, 22 Sep 2022 10:47:51 +0100 Subject: [PATCH] Fix waiting for informers to sync in Typha autoscaler (#2190) Co-authored-by: Casey Davenport --- 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) }