Skip to content

Commit

Permalink
Remove go from informer start
Browse files Browse the repository at this point in the history
  • Loading branch information
mrIncompetent committed Feb 28, 2018
1 parent 8d11e84 commit 56894c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ func main() {
name: name,
}

go kubeInformerFactory.Start(stopCh)
go kubePublicKubeInformerFactory.Start(stopCh)
go defaultKubeInformerFactory.Start(stopCh)
go machineInformerFactory.Start(stopCh)
kubeInformerFactory.Start(stopCh)
kubePublicKubeInformerFactory.Start(stopCh)
defaultKubeInformerFactory.Start(stopCh)
machineInformerFactory.Start(stopCh)

for _, syncsMap := range []map[reflect.Type]bool{kubeInformerFactory.WaitForCacheSync(stopCh), kubePublicKubeInformerFactory.WaitForCacheSync(stopCh), machineInformerFactory.WaitForCacheSync(stopCh), defaultKubeInformerFactory.WaitForCacheSync(stopCh)} {
for key, synced := range syncsMap {
Expand Down

1 comment on commit 56894c7

@guusvw
Copy link
Contributor

@guusvw guusvw commented on 56894c7 Feb 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ;)

Please sign in to comment.