From 787f229616b7d26d4a712288018b83c8de6d900c Mon Sep 17 00:00:00 2001 From: Dileep Ranganathan Date: Wed, 7 Aug 2019 00:14:07 -0700 Subject: Collectd Global CRD This patch introduces an enhancement to the existing Collectd Operator. It has now 2 CRDS CollectdGlobal and CollectdPlugin and corresponding controllers. CollectdGlobal is used to specify the global options of collectd conf and CollectdPlugin is used to load/unload plugins. Added synchronization when both controllers try to fetch the same resources. Refactored some of the common code to collectdutils. Issue-ID: ONAPARC-461 Signed-off-by: Dileep Ranganathan Change-Id: Id2edf6fa6de56d9d7216ebb258b3017661c6a3dd --- .../collectd-operator/deploy/crds/collectdglobal.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vnfs/DAaaS/microservices/collectd-operator/deploy/crds/collectdglobal.yaml (limited to 'vnfs/DAaaS/microservices/collectd-operator/deploy/crds/collectdglobal.yaml') diff --git a/vnfs/DAaaS/microservices/collectd-operator/deploy/crds/collectdglobal.yaml b/vnfs/DAaaS/microservices/collectd-operator/deploy/crds/collectdglobal.yaml new file mode 100644 index 00000000..60dec7c4 --- /dev/null +++ b/vnfs/DAaaS/microservices/collectd-operator/deploy/crds/collectdglobal.yaml @@ -0,0 +1,15 @@ +apiVersion: onap.org/v1alpha1 +kind: CollectdGlobal +metadata: + name: example-collectdglobal +spec: + # Add fields here + globalOptions: | + BaseDir "/opt/collectd/var/lib/collectd" + PIDFile "/opt/collectd/var/run/collectd.pid" + PluginDir "/opt/collectd/lib/collectd" + TypesDB "/opt/collectd/share/collectd/types.db" + TypesDB "/opt/collectd/share/collectd/vcmts.types.db" + #Hostname "localhost" + Interval 1 + configMap: typesdb-configmap -- cgit 1.2.3-korg