Skip to content

Commit 05b3d3b

Browse files
committed
fix: rename k8sautoscaling import to autoscalingv1
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
1 parent 8579a68 commit 05b3d3b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/store/verticalpodautoscaler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package store
1919
import (
2020
"context"
2121

22-
k8sautoscaling "k8s.io/api/autoscaling/v1"
22+
autoscalingv1 "k8s.io/api/autoscaling/v1"
2323
v1 "k8s.io/api/core/v1"
2424
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2525
"k8s.io/apimachinery/pkg/runtime"
@@ -284,7 +284,7 @@ func wrapVPAFunc(f func(*autoscaling.VerticalPodAutoscaler) *metric.Family) func
284284
// * to alert about VPA objects without target refs
285285
// * to count the right amount of VPA objects in a cluster
286286
if targetRef == nil {
287-
targetRef = &k8sautoscaling.CrossVersionObjectReference{}
287+
targetRef = &autoscalingv1.CrossVersionObjectReference{}
288288
}
289289

290290
for _, m := range metricFamily.Metrics {

internal/store/verticalpodautoscaler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package store
1919
import (
2020
"testing"
2121

22-
k8sautoscaling "k8s.io/api/autoscaling/v1"
22+
autoscalingv1 "k8s.io/api/autoscaling/v1"
2323
v1 "k8s.io/api/core/v1"
2424
"k8s.io/apimachinery/pkg/api/resource"
2525
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -69,7 +69,7 @@ func TestVPAStore(t *testing.T) {
6969
},
7070
},
7171
Spec: autoscaling.VerticalPodAutoscalerSpec{
72-
TargetRef: &k8sautoscaling.CrossVersionObjectReference{
72+
TargetRef: &autoscalingv1.CrossVersionObjectReference{
7373
APIVersion: "apps/v1",
7474
Kind: "Deployment",
7575
Name: "deployment1",

0 commit comments

Comments
 (0)