Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into patch-1
  • Loading branch information
Thomas Vitt committed May 12, 2022
2 parents 74b9de2 + 7583967 commit ca76d52
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,21 @@ func main2() error {
defer close(stop)

go controller.Run(stop)

if !*namespaceAll && *addNamespaces != "" {
namespaces := strings.Split(*addNamespaces, ",")
var inf ssinformers.SharedInformerFactory
var ctlr *Controller

for _, ns := range namespaces {
inf = ssinformers.NewFilteredSharedInformerFactory(ssclientset, 0, ns, tweakopts)
ctlr = NewController(clientset, ssclientset, inf, keyRegistry)
ctlr.oldGCBehavior = *oldGCBehavior
ctlr.updateStatus = *updateStatus
log.Printf("Starting new informer for namespace: %s\n", ns)
go ctlr.Run(stop)
}
}

if !*namespaceAll && *addNamespaces != "" {
namespaces := strings.Split(*addNamespaces, ",")
Expand Down

0 comments on commit ca76d52

Please sign in to comment.