Skip to content

Commit

Permalink
Merge pull request #175 from oribon/fix_mgr
Browse files Browse the repository at this point in the history
Use GlobalMgr for SriovNetwork controllers
  • Loading branch information
pliurh authored Aug 16, 2021
2 parents 1980c0b + c7d94c1 commit 568a77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ func main() {
if err = (&controllers.SriovNetworkReconciler{
Client: mgrGlobal.GetClient(),
Scheme: mgrGlobal.GetScheme(),
}).SetupWithManager(mgr); err != nil {
}).SetupWithManager(mgrGlobal); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "SriovNetwork")
os.Exit(1)
}
if err = (&controllers.SriovIBNetworkReconciler{
Client: mgrGlobal.GetClient(),
Scheme: mgrGlobal.GetScheme(),
}).SetupWithManager(mgr); err != nil {
}).SetupWithManager(mgrGlobal); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "SriovIBNetwork")
os.Exit(1)
}
Expand Down

0 comments on commit 568a77f

Please sign in to comment.