Skip to content

Commit

Permalink
chore imports: remove repeated package and reformat (#2183)
Browse files Browse the repository at this point in the history
Signed-off-by: Shirley Ding <[email protected]>

Signed-off-by: Shirley Ding <[email protected]>
  • Loading branch information
ShirleyDing authored Sep 26, 2022
1 parent df3156a commit 6aa8ee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/rollouts-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
"k8s.io/client-go/tools/clientcmd"

"github.com/argoproj/pkg/kubeclientmetrics"

"github.com/argoproj/argo-rollouts/controller"
"github.com/argoproj/argo-rollouts/controller/metrics"
jobprovider "github.com/argoproj/argo-rollouts/metricproviders/job"
Expand All @@ -32,7 +34,6 @@ import (
logutil "github.com/argoproj/argo-rollouts/utils/log"
"github.com/argoproj/argo-rollouts/utils/tolerantinformer"
"github.com/argoproj/argo-rollouts/utils/version"
"github.com/argoproj/pkg/kubeclientmetrics"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/util/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/discovery"
Expand Down Expand Up @@ -175,7 +174,7 @@ func NewManager(
albIngressClasses []string,
) *Manager {

utilruntime.Must(rolloutscheme.AddToScheme(scheme.Scheme))
runtime.Must(rolloutscheme.AddToScheme(scheme.Scheme))
log.Info("Creating event broadcaster")

metricsAddr := fmt.Sprintf(listenAddr, metricsPort)
Expand Down

0 comments on commit 6aa8ee8

Please sign in to comment.