Bug Fix - Daemonset not reloading 97/95297/1
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Mon, 9 Sep 2019 22:56:54 +0000 (15:56 -0700)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Tue, 10 Sep 2019 03:21:34 +0000 (20:21 -0700)
commit3d29ee771bf6f0f2c2117cc2908561e228c8123f
treef297172e12f0617d1de558da92ba43a2d9f2d473
parent9df8a9088ee55e32c2fb1f337b77c7bb9a3ced9f
Bug Fix - Daemonset not reloading

Fixed issue related to Daemonset reloading due to a bug introduced in
the previous patch.
Removed redundant watches across multiple controllers.
Used defer statement instead of calling mutex unlock.

Issue-ID: ONAPARC-461
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Change-Id: I7ef6d4e640d6190da34cc70d5a7cf80a96c004bd
vnfs/DAaaS/microservices/collectd-operator/pkg/controller/collectdglobal/collectdglobal_controller.go
vnfs/DAaaS/microservices/collectd-operator/pkg/controller/collectdplugin/collectdplugin_controller.go
vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go