fix: wikijs in setupTenantControllers
All checks were successful
/ publish (push) Successful in 14s

This commit is contained in:
Aurore Roma 2024-12-12 18:21:18 +01:00
parent 1bb6c45640
commit 02a71f7960

View file

@ -294,6 +294,12 @@ func setupTenantControllers(mgr manager.Manager) {
setupLog.Error(err, "unable to create controller", "controller", "StaticWebsite") setupLog.Error(err, "unable to create controller", "controller", "StaticWebsite")
os.Exit(1) os.Exit(1)
} }
if err = (&appscontroller.WikijsReconciler{
Client: mgr.GetClient(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "Wikijs")
os.Exit(1)
}
} }
func main() { func main() {
@ -404,12 +410,6 @@ func main() {
setupTenantControllers(mgr) setupTenantControllers(mgr)
} }
if err = (&appscontroller.WikijsReconciler{
Client: mgr.GetClient(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "Wikijs")
os.Exit(1)
}
//+kubebuilder:scaffold:builder //+kubebuilder:scaffold:builder
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil { if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {