Skip to content

Commit

Permalink
Add SubNamespace reconciler disabling mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
ubombar committed Mar 22, 2024
1 parent de6a198 commit bf1e36e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ func main() {
os.Exit(1)
}
}
if err = (&multitenancycontroller.SubNamespaceReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "SubNamespace")
os.Exit(1)
if !disabledReconcilers.Contains("SubNamespace") {
if err = (&multitenancycontroller.SubNamespaceReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "SubNamespace")
os.Exit(1)
}
}
//+kubebuilder:scaffold:builder

Expand Down

0 comments on commit bf1e36e

Please sign in to comment.