Add/update/delete PrometheusRemoteEndpoint CR
[demo.git] / vnfs / DAaaS / microservices / remote-config-operator / pkg / controller / controller.go
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/pkg/controller/controller.go b/vnfs/DAaaS/microservices/remote-config-operator/pkg/controller/controller.go
new file mode 100644 (file)
index 0000000..7c069f3
--- /dev/null
@@ -0,0 +1,18 @@
+package controller
+
+import (
+       "sigs.k8s.io/controller-runtime/pkg/manager"
+)
+
+// AddToManagerFuncs is a list of functions to add all Controllers to the Manager
+var AddToManagerFuncs []func(manager.Manager) error
+
+// AddToManager adds all Controllers to the Manager
+func AddToManager(m manager.Manager) error {
+       for _, f := range AddToManagerFuncs {
+               if err := f(m); err != nil {
+                       return err
+               }
+       }
+       return nil
+}