From 05b3d3b169097d18483276613bf2ff10c2438baa Mon Sep 17 00:00:00 2001 From: "m.nabokikh" Date: Wed, 22 Sep 2021 19:18:12 +0400 Subject: [PATCH] fix: rename k8sautoscaling import to autoscalingv1 Signed-off-by: m.nabokikh --- internal/store/verticalpodautoscaler.go | 4 ++-- internal/store/verticalpodautoscaler_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/store/verticalpodautoscaler.go b/internal/store/verticalpodautoscaler.go index bacf187bc2..433ddec1d1 100644 --- a/internal/store/verticalpodautoscaler.go +++ b/internal/store/verticalpodautoscaler.go @@ -19,7 +19,7 @@ package store import ( "context" - k8sautoscaling "k8s.io/api/autoscaling/v1" + autoscalingv1 "k8s.io/api/autoscaling/v1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -284,7 +284,7 @@ func wrapVPAFunc(f func(*autoscaling.VerticalPodAutoscaler) *metric.Family) func // * to alert about VPA objects without target refs // * to count the right amount of VPA objects in a cluster if targetRef == nil { - targetRef = &k8sautoscaling.CrossVersionObjectReference{} + targetRef = &autoscalingv1.CrossVersionObjectReference{} } for _, m := range metricFamily.Metrics { diff --git a/internal/store/verticalpodautoscaler_test.go b/internal/store/verticalpodautoscaler_test.go index 9e0ace49f2..82aa7eb5ae 100644 --- a/internal/store/verticalpodautoscaler_test.go +++ b/internal/store/verticalpodautoscaler_test.go @@ -19,7 +19,7 @@ package store import ( "testing" - k8sautoscaling "k8s.io/api/autoscaling/v1" + autoscalingv1 "k8s.io/api/autoscaling/v1" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -69,7 +69,7 @@ func TestVPAStore(t *testing.T) { }, }, Spec: autoscaling.VerticalPodAutoscalerSpec{ - TargetRef: &k8sautoscaling.CrossVersionObjectReference{ + TargetRef: &autoscalingv1.CrossVersionObjectReference{ APIVersion: "apps/v1", Kind: "Deployment", Name: "deployment1",