Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix imports to adhere to goimports #1179

Merged
merged 2 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions benchmark/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ package benchmark_test
import (
"context"
"fmt"
"os"
"strconv"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/vmware-tanzu/cartographer/benchmark/sampler"
Expand All @@ -28,11 +32,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/types"
"os"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/yaml"
"strconv"
"time"
)

const timeoutSecsPerWorkload = 10
Expand Down
3 changes: 2 additions & 1 deletion benchmark/performance_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
package benchmark_test

import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/vmware-tanzu/cartographer/pkg/apis/v1alpha1"
Expand All @@ -25,7 +27,6 @@ import (
metrics "k8s.io/metrics/pkg/apis/metrics/v1beta1"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/config"
"testing"
)

func TestPerformance(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion benchmark/sampler/sampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ package sampler
import (
"context"
"fmt"
"time"

"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/types"
"k8s.io/metrics/pkg/apis/metrics/v1beta1"
"sigs.k8s.io/controller-runtime/pkg/client"
"time"
)

type PodMetricsSampler interface {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/delivery/deliverable_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ import (
"context"
"encoding/json"
"fmt"
eventsv1 "k8s.io/api/events/v1"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
. "github.com/onsi/gomega/gstruct"
corev1 "k8s.io/api/core/v1"
eventsv1 "k8s.io/api/events/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/delivery/delivery_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package delivery_test
import (
"context"
"io"
eventsv1 "k8s.io/api/events/v1"
"os"
"testing"
"time"
Expand All @@ -29,6 +28,7 @@ import (
"go.uber.org/zap/zapcore"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
eventsv1 "k8s.io/api/events/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/storage/names"
Expand Down
1 change: 1 addition & 0 deletions tests/integration/runnable/runnable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"encoding/json"
"fmt"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/supplychain/workload_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ package supplychain_test
import (
"context"
"encoding/json"
eventsv1 "k8s.io/api/events/v1"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
. "github.com/onsi/gomega/gstruct"
corev1 "k8s.io/api/core/v1"
eventsv1 "k8s.io/api/events/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package integration
import (
"io"
"path/filepath"

"sigs.k8s.io/controller-runtime/pkg/envtest"
)

Expand Down