diff options
author | Srivahni <srivahni.chivukula@intel.com> | 2019-08-05 15:39:34 -0700 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2019-08-11 21:50:15 +0000 |
commit | cda9d563ef843be5f80ce5755cb291c68dc6e3e8 (patch) | |
tree | 463fa10ee2c6399b0d33b2b4f7b04daa8240f223 /vnfs/DAaaS/microservices/visualization-operator/pkg/controller | |
parent | d9eab4e0325f26d8e05263413e3af5a1bf9ed046 (diff) |
Skeletal code for visualization-operator
This visualization-operator(based on operator-sdk)
when deployed, should be able to manage(add/update/delete)
the datasources dynamically without restarting the
grafana pods.
Issue-ID: ONAPARC-393
Signed-off-by: Srivahni <srivahni.chivukula@intel.com>
Change-Id: I2df3659aca5dd9ad59cf58adaf3c30999829fa2f
Diffstat (limited to 'vnfs/DAaaS/microservices/visualization-operator/pkg/controller')
-rw-r--r-- | vnfs/DAaaS/microservices/visualization-operator/pkg/controller/controller.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vnfs/DAaaS/microservices/visualization-operator/pkg/controller/controller.go b/vnfs/DAaaS/microservices/visualization-operator/pkg/controller/controller.go new file mode 100644 index 00000000..7c069f3e --- /dev/null +++ b/vnfs/DAaaS/microservices/visualization-operator/pkg/controller/controller.go @@ -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 +} |