Skip to content

Commit

Permalink
Update HPA to autoscaling/v2 in new collectors
Browse files Browse the repository at this point in the history
Reference links: #551

Signed-off-by: Lucas Thiesen <[email protected]>
  • Loading branch information
lucastt committed May 5, 2023
1 parent 32c6a01 commit 0eaa926
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/collector/fake_collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package collector
import (
"time"

autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
//autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
autoscalingv2 "k8s.io/api/autoscaling/v2"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/metrics/pkg/apis/custom_metrics"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/collector/hostname_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"strings"
"time"

autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
//autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
autoscalingv2 "k8s.io/api/autoscaling/v2"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion pkg/collector/hostname_collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
"time"

"github.com/stretchr/testify/require"
autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
//autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
autoscalingv2 "k8s.io/api/autoscaling/v2"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/metrics/pkg/apis/external_metrics"
Expand Down

0 comments on commit 0eaa926

Please sign in to comment.