File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package store
1919import (
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 {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package store
1919import (
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" ,
You can’t perform that action at this time.
0 commit comments