Skip to content

Commit

Permalink
Otel-collector-contrib-7386 replacing autoscaling/v2beta1 with autosc…
Browse files Browse the repository at this point in the history
…aling/v2beta2 k8s api from receiver/k8scluster
  • Loading branch information
shree007 authored and hero committed Jan 27, 2022
1 parent 1ec0f86 commit 06ef12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/k8sclusterreceiver/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"go.uber.org/atomic"
"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
"k8s.io/api/autoscaling/v2beta2"
v2beta2 "k8s.io/api/autoscaling/v2beta2"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -98,7 +98,7 @@ func (rw *resourceWatcher) prepareSharedInformerFactory() {
rw.setupInformers(&appsv1.StatefulSet{}, factory.Apps().V1().StatefulSets().Informer())
rw.setupInformers(&batchv1.Job{}, factory.Batch().V1().Jobs().Informer())
rw.setupInformers(&batchv1.CronJob{}, factory.Batch().V1beta1().CronJobs().Informer())
rw.setupInformers(&v2beta1.HorizontalPodAutoscaler{},
rw.setupInformers(&v2beta2.HorizontalPodAutoscaler{},
factory.Autoscaling().V2beta1().HorizontalPodAutoscalers().Informer(),
)

Expand Down

0 comments on commit 06ef12f

Please sign in to comment.