diff options
author | 2019-08-10 16:53:06 -0700 | |
---|---|---|
committer | 2019-08-12 10:51:22 -0700 | |
commit | 6bae7d6e0110dcb57cd48e813d1dbaf4fe1c9293 (patch) | |
tree | a729a934892c88004da42315da27f58e788582ce /vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go | |
parent | ebc40b61c64d5f06b5fe2b4d886ed4e5748db6d3 (diff) |
Upgraded Daemonset apiversion to apps/v1
Upgraded Daemonset apiversion to apps/v1
Issue-ID: ONAPARC-461
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Change-Id: I6cf5d355808fb0c86bfb469018ae570c6f7465f7
Diffstat (limited to 'vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go')
-rw-r--r-- | vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go b/vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go index 0b3cf3fd..95604835 100644 --- a/vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go +++ b/vnfs/DAaaS/microservices/collectd-operator/pkg/controller/utils/collectdutils.go @@ -11,8 +11,8 @@ import ( onapv1alpha1 "collectd-operator/pkg/apis/onap/v1alpha1" + appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" - extensionsv1beta1 "k8s.io/api/extensions/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "sigs.k8s.io/controller-runtime/pkg/client" ) @@ -33,7 +33,7 @@ var lock sync.Mutex // ResourceMap to hold objects to update/reload type ResourceMap struct { ConfigMap *corev1.ConfigMap - DaemonSet *extensionsv1beta1.DaemonSet + DaemonSet *appsv1.DaemonSet CollectdPlugins *[]onapv1alpha1.CollectdPlugin } @@ -98,7 +98,7 @@ func FindResourceMapForCR(rc client.Client, reqLogger logr.Logger, ns string) (* } // Select DaemonSets with label - dsList := &extensionsv1beta1.DaemonSetList{} + dsList := &appsv1.DaemonSetList{} err = rc.List(context.TODO(), opts, dsList) if err != nil { return rmap, err |