Skip to content

Commit

Permalink
update GC and updatestatus
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitt authored and Thomas Vitt committed May 12, 2022
1 parent 6ef9842 commit 8a69c91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,14 @@ func main2() error {
if !*namespaceAll && *addNamespaces != "" {
namespaces := strings.Split(*addNamespaces, ",")
var inf ssinformers.SharedInformerFactory
var ctlr *Controller
var ctlr *Controller

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

0 comments on commit 8a69c91

Please sign in to comment.