Skip to content

Commit

Permalink
treewide: Tidy up remaining imports
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Payne <tom@isovalent.com>
  • Loading branch information
twpayne authored and joestringer committed Jan 6, 2022
1 parent 20d19f3 commit 8e25d64
Show file tree
Hide file tree
Showing 624 changed files with 1,789 additions and 1,812 deletions.
6 changes: 3 additions & 3 deletions bugtool/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"sync"
"time"

"github.com/cilium/cilium/pkg/components"
"github.com/cilium/cilium/pkg/defaults"

"github.com/cilium/workerpool"
"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/components"
"github.com/cilium/cilium/pkg/defaults"
)

// BugtoolRootCmd is the top level command for the bugtool.
Expand Down
4 changes: 2 additions & 2 deletions cilium-health/cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"text/tabwriter"

"github.com/spf13/cobra"

ciliumClient "github.com/cilium/cilium/pkg/client"
"github.com/cilium/cilium/pkg/command"

"github.com/spf13/cobra"
)

// healthGetCmd represents the get command
Expand Down
10 changes: 5 additions & 5 deletions cilium-health/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
"os"
"strings"

clientPkg "github.com/cilium/cilium/pkg/health/client"
"github.com/cilium/cilium/pkg/logging"
"github.com/cilium/cilium/pkg/logging/logfields"
"github.com/cilium/cilium/pkg/option"

"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
"github.com/spf13/viper"

clientPkg "github.com/cilium/cilium/pkg/health/client"
"github.com/cilium/cilium/pkg/logging"
"github.com/cilium/cilium/pkg/logging/logfields"
"github.com/cilium/cilium/pkg/option"
)

const targetName = "cilium-health"
Expand Down
4 changes: 2 additions & 2 deletions cilium-health/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"os"
"text/tabwriter"

"github.com/spf13/cobra"

"github.com/cilium/cilium/api/v1/health/models"
"github.com/cilium/cilium/pkg/command"
clientPkg "github.com/cilium/cilium/pkg/health/client"

"github.com/spf13/cobra"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions cilium-health/launch/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import (
"strings"
"time"

"github.com/containernetworking/plugins/pkg/ns"
"github.com/vishvananda/netlink"

"github.com/cilium/cilium/api/v1/models"
"github.com/cilium/cilium/pkg/datapath/connector"
"github.com/cilium/cilium/pkg/datapath/linux/route"
Expand All @@ -36,9 +39,6 @@ import (
"github.com/cilium/cilium/pkg/pidfile"
"github.com/cilium/cilium/pkg/policy"
"github.com/cilium/cilium/pkg/sysctl"

"github.com/containernetworking/plugins/pkg/ns"
"github.com/vishvananda/netlink"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions cilium-health/responder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
"os"
"os/signal"

flag "github.com/spf13/pflag"
"golang.org/x/sys/unix"

healthDefaults "github.com/cilium/cilium/pkg/health/defaults"
"github.com/cilium/cilium/pkg/health/probe/responder"
"github.com/cilium/cilium/pkg/pidfile"

flag "github.com/spf13/pflag"
"golang.org/x/sys/unix"
)

func main() {
Expand Down
7 changes: 3 additions & 4 deletions cilium/cmd/bpf_bandwidth_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ import (
"strings"
"text/tabwriter"

"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/api/resource"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/bwmap"

"github.com/spf13/cobra"

"k8s.io/apimachinery/pkg/api/resource"
)

var bpfBandwidthListCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_ct_flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"strconv"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/ctmap"

"github.com/spf13/cobra"
)

// bpfCtFlushCmd represents the bpf_ct_flush command
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_ct_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (
"strconv"
"time"

"github.com/spf13/cobra"

"github.com/cilium/cilium/api/v1/client/daemon"
"github.com/cilium/cilium/api/v1/models"
"github.com/cilium/cilium/pkg/bpf"
"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/ctmap"

"github.com/spf13/cobra"
)

// bpfCtListCmd represents the bpf_ct_list command
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_ct_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (
"os"
"testing"

. "gopkg.in/check.v1"

"github.com/cilium/cilium/pkg/byteorder"
"github.com/cilium/cilium/pkg/checker"
"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/maps/ctmap"
"github.com/cilium/cilium/pkg/testutils/mockmaps"
"github.com/cilium/cilium/pkg/tuple"
"github.com/cilium/cilium/pkg/types"

. "gopkg.in/check.v1"
)

func Test(t *testing.T) { TestingT(t) }
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_egress_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package cmd
import (
"net"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/egressmap"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_egress_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"fmt"
"net"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/egressmap"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_egress_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"os"
"text/tabwriter"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/egressmap"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_egress_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"net"
"os"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/egressmap"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_endpoint_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package cmd
import (
"net"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/lxcmap"

"github.com/spf13/cobra"
)

var bpfEndpointDeleteCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_endpoint_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package cmd
import (
"os"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/lxcmap"

"github.com/spf13/cobra"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions cilium/cmd/bpf_ipcache_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"os"
"strings"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/ipcache"

iradix "github.com/hashicorp/go-immutable-radix"
"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/ipcache"
)

const usage = "IP address must be in dotted decimal (192.168.1.1) or IPv6 (feab::f02b) form"
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_ipcache_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"fmt"
"net"

"github.com/cilium/cilium/pkg/checker"

. "gopkg.in/check.v1"

"github.com/cilium/cilium/pkg/checker"
)

type BPFIPCacheGetSuite struct{}
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_ipcache_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"fmt"
"os"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/ipcache"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_ipmasq_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"fmt"
"os"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/ipmasq"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_lb_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ package cmd
import (
"fmt"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/bpf"
"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/loadbalancer"
"github.com/cilium/cilium/pkg/maps/lbmap"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_lb_maglev_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"errors"
"strconv"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/ebpf"
"github.com/cilium/cilium/pkg/maps/lbmap"

"github.com/spf13/cobra"
)

var bpfMaglevGetCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_metrics_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"strings"
"text/tabwriter"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/metricsmap"
monitorAPI "github.com/cilium/cilium/pkg/monitor/api"

"github.com/spf13/cobra"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_metrics_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"sort"
"strings"

. "gopkg.in/check.v1"

"github.com/cilium/cilium/pkg/checker"
"github.com/cilium/cilium/pkg/maps/metricsmap"
monitorAPI "github.com/cilium/cilium/pkg/monitor/api"
"github.com/cilium/cilium/pkg/testutils/mockmaps"

. "gopkg.in/check.v1"
)

type BPFMetricsMapSuite struct{}
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_mountfs_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"text/tabwriter"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/command"
"github.com/cilium/cilium/pkg/mountinfo"

"github.com/spf13/cobra"
)

// bpfmountfsShowCmd represents the bpf file system show command
Expand Down
4 changes: 2 additions & 2 deletions cilium/cmd/bpf_nat_flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"fmt"
"os"

"github.com/spf13/cobra"

"github.com/cilium/cilium/pkg/common"
"github.com/cilium/cilium/pkg/maps/nat"

"github.com/spf13/cobra"
)

// bpfNatFlushCmd represents the bpf_nat_flush command
Expand Down
Loading

0 comments on commit 8e25d64

Please sign in to comment.