Skip to content

Commit

Permalink
fix: rename k8sautoscaling import to autoscalingv1
Browse files Browse the repository at this point in the history
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
  • Loading branch information
nabokihms committed Sep 22, 2021
1 parent 8579a68 commit 05b3d3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/store/verticalpodautoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions internal/store/verticalpodautoscaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 05b3d3b

Please sign in to comment.