Skip to content

Commit

Permalink
Fix waiting for informers to sync in Typha autoscaler (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseydavenport authored Jun 14, 2022
1 parent d558049 commit e8e5ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/installation/typha_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit e8e5ac7

Please sign in to comment.