github.com/interconnectedcloud/qdr-operator@v0.0.0-20210826174505-576d2b33dac7/pkg/controller/controller.go (about) 1 package controller 2 3 import ( 4 "sigs.k8s.io/controller-runtime/pkg/manager" 5 ) 6 7 // AddToManagerFuncs is a list of functions to add all Controllers to the Manager 8 var AddToManagerFuncs []func(manager.Manager) error 9 10 // AddToManager adds all Controllers to the Manager 11 func AddToManager(m manager.Manager) error { 12 for _, f := range AddToManagerFuncs { 13 if err := f(m); err != nil { 14 return err 15 } 16 } 17 return nil 18 }