From f2e8d05719be2aaf260ccc31f6fade0651d549f1 Mon Sep 17 00:00:00 2001 From: Anil Kodali Date: Wed, 20 Mar 2024 14:52:19 -0700 Subject: [PATCH] fix another v2Beta1 instance --- pkg/provider/hpa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/hpa.go b/pkg/provider/hpa.go index 33761e4..3ba3a18 100644 --- a/pkg/provider/hpa.go +++ b/pkg/provider/hpa.go @@ -41,7 +41,7 @@ func StartHPAListener(client kubernetes.Interface, addFunc, deleteFunc RuleHandl func (l *hpaListener) listen() { log.Info("listening for HPA instances") - rc := l.kubeClient.AutoscalingV2beta1().RESTClient() + rc := l.kubeClient.AutoscalingV2beta2().RESTClient() lw := cache.NewListWatchFromClient(rc, "horizontalpodautoscalers", v1.NamespaceAll, fields.Everything()) inf := cache.NewSharedInformer(lw, &v2beta2.HorizontalPodAutoscaler{}, 0)