Skip to content

Commit

Permalink
Fix multiple run of informers created in fetcher.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mikutas committed Sep 28, 2023
1 parent 5d00f07 commit d54a106
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewLimitsRangeCalculator(f informers.SharedInformerFactory) (*limitsChecker
}
limitRangeLister := f.Core().V1().LimitRanges().Lister()
stopCh := make(chan struct{})
f.Start(stopCh)
go f.Core().V1().LimitRanges().Informer().Run(stopCh)
for _, ok := range f.WaitForCacheSync(stopCh) {
if !ok {
if !f.Core().V1().LimitRanges().Informer().HasSynced() {
Expand Down

0 comments on commit d54a106

Please sign in to comment.