Skip to content

Commit

Permalink
Remove redundant import in telemetry package (#5423)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjngx authored Apr 18, 2024
1 parent 4e23900 commit 1ae00b0
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions internal/telemetry/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
coreV1 "k8s.io/api/core/v1"
networkingV1 "k8s.io/api/networking/v1"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
k8sruntime "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/version"
Expand Down Expand Up @@ -368,7 +367,7 @@ func TestCountVirtualServers(t *testing.T) {
virtualServers: []*configs.VirtualServerEx{
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand All @@ -389,7 +388,7 @@ func TestCountVirtualServers(t *testing.T) {
virtualServers: []*configs.VirtualServerEx{
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand All @@ -398,7 +397,7 @@ func TestCountVirtualServers(t *testing.T) {
},
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "tea",
},
Expand All @@ -419,7 +418,7 @@ func TestCountVirtualServers(t *testing.T) {
virtualServers: []*configs.VirtualServerEx{
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand All @@ -428,7 +427,7 @@ func TestCountVirtualServers(t *testing.T) {
},
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "tea",
},
Expand Down Expand Up @@ -514,7 +513,7 @@ func TestCountTransportServers(t *testing.T) {
transportServers: []*configs.TransportServerEx{
{
TransportServer: &conf_v1.TransportServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand All @@ -539,7 +538,7 @@ func TestCountTransportServers(t *testing.T) {
transportServers: []*configs.TransportServerEx{
{
TransportServer: &conf_v1.TransportServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand All @@ -552,7 +551,7 @@ func TestCountTransportServers(t *testing.T) {
},
{
TransportServer: &conf_v1.TransportServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "tea",
},
Expand All @@ -577,7 +576,7 @@ func TestCountTransportServers(t *testing.T) {
transportServers: []*configs.TransportServerEx{
{
TransportServer: &conf_v1.TransportServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand All @@ -590,7 +589,7 @@ func TestCountTransportServers(t *testing.T) {
},
{
TransportServer: &conf_v1.TransportServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "tea",
},
Expand Down Expand Up @@ -785,7 +784,7 @@ func TestCountVirtualServersServices(t *testing.T) {
virtualServers: []*configs.VirtualServerEx{
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand Down Expand Up @@ -817,7 +816,7 @@ func TestCountVirtualServersServices(t *testing.T) {
virtualServers: []*configs.VirtualServerEx{
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand Down Expand Up @@ -849,7 +848,7 @@ func TestCountVirtualServersServices(t *testing.T) {
virtualServers: []*configs.VirtualServerEx{
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand Down Expand Up @@ -878,7 +877,7 @@ func TestCountVirtualServersServices(t *testing.T) {
virtualServers: []*configs.VirtualServerEx{
{
VirtualServer: &conf_v1.VirtualServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand Down Expand Up @@ -975,7 +974,7 @@ func TestCountTransportServersServices(t *testing.T) {
transportServers: []*configs.TransportServerEx{
{
TransportServer: &conf_v1.TransportServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand Down Expand Up @@ -1010,7 +1009,7 @@ func TestCountTransportServersServices(t *testing.T) {
transportServers: []*configs.TransportServerEx{
{
TransportServer: &conf_v1.TransportServer{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metaV1.ObjectMeta{
Namespace: "ns-1",
Name: "coffee",
},
Expand Down

0 comments on commit 1ae00b0

Please sign in to comment.