register StorageClassReconciler with mgr
@@ -96,11 +96,6 @@ func main() {
os.Exit(1)
}
- //if err = controllers.NewApplicationReconciler(mgr).SetupWithManager(mgr); err != nil {
- // setupLog.Error(err, "unable to create controller", "controller", "Application")
- // os.Exit(1)
- //}
-
if err = (controllers.NewKalmNSReconciler(mgr)).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "KalmNS")
os.Exit(1)
@@ -176,6 +171,11 @@ func main() {
os.Exit(1)
}
+ if err = (controllers.NewStorageClassReconciler(mgr)).SetupWithManager(mgr); err != nil {
+ setupLog.Error(err, "unable to create controller", "controller", "StorageClass")
+ os.Exit(1)
+ }
+
// only run webhook if explicitly declared
if os.Getenv("ENABLE_WEBHOOKS") == "true" {
if err = (&corev1alpha1.Component{}).SetupWebhookWithManager(mgr); err != nil {
