Skip to content

Commit

Permalink
Imports formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed May 23, 2023
1 parent f8d7fce commit d2c2fbb
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 17 deletions.
3 changes: 2 additions & 1 deletion cmd/managed-kubernetes-auditing-toolkit/eks/find_secrets.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package eks

import (
"log"

"github.com/datadog/managed-kubernetes-auditing-toolkit/internal/utils"
"github.com/datadog/managed-kubernetes-auditing-toolkit/pkg/managed-kubernetes-auditing-toolkit/eks/secrets"
"github.com/fatih/color"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/spf13/cobra"
"log"
)

func buildEksFindSecretsCommand() *cobra.Command {
Expand Down
3 changes: 2 additions & 1 deletion cmd/managed-kubernetes-auditing-toolkit/eks/imds.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package eks

import (
"log"

"github.com/datadog/managed-kubernetes-auditing-toolkit/internal/utils"
"github.com/datadog/managed-kubernetes-auditing-toolkit/pkg/managed-kubernetes-auditing-toolkit/eks/imds"
"github.com/fatih/color"
"github.com/spf13/cobra"
"log"
)

func buildTestImdsAccessCommand() *cobra.Command {
Expand Down
3 changes: 2 additions & 1 deletion cmd/managed-kubernetes-auditing-toolkit/eks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package eks

import (
"errors"
"log"

"github.com/common-nighthawk/go-figure"
"github.com/datadog/managed-kubernetes-auditing-toolkit/internal/utils"
"github.com/spf13/cobra"
"log"
)

func BuildEksSubcommand() *cobra.Command {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ package eks
import (
"errors"
"fmt"
"log"
"os"
"strings"

"github.com/awalterschulze/gographviz"
"github.com/aws/aws-sdk-go-v2/aws/arn"
"github.com/datadog/managed-kubernetes-auditing-toolkit/internal/utils"
Expand All @@ -13,9 +17,6 @@ import (
"github.com/spf13/cobra"
"golang.org/x/exp/slices"
"golang.org/x/term"
"log"
"os"
"strings"
)

// Command-line arguments
Expand Down
3 changes: 2 additions & 1 deletion internal/utils/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package utils

import (
"context"
"log"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"log"
)

func AWSClient() *aws.Config {
Expand Down
9 changes: 5 additions & 4 deletions internal/utils/kubernetes.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package utils

import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/util/homedir"
"log"
"os"
"path/filepath"
"strings"

"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/util/homedir"
)

func getKubeConfigPath() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ import (
"context"
"encoding/json"
"fmt"
"log"
"net/url"
"path/filepath"
"strconv"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/arn"
"github.com/aws/aws-sdk-go-v2/service/eks"
"github.com/aws/aws-sdk-go-v2/service/iam"
eks2 "github.com/datadog/managed-kubernetes-auditing-toolkit/pkg/managed-kubernetes-auditing-toolkit/eks"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"log"
"net/url"
"path/filepath"
"strconv"
)

type EKSClusterRolesResolver struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package role_relationships

import (
"github.com/datadog/managed-kubernetes-auditing-toolkit/pkg/managed-kubernetes-auditing-toolkit/eks"
"testing"

"github.com/datadog/managed-kubernetes-auditing-toolkit/pkg/managed-kubernetes-auditing-toolkit/eks"
)

func TestRoleCanBeAssumedByServiceAccount(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/managed-kubernetes-auditing-toolkit/eks/utils.go
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
package eks

0 comments on commit d2c2fbb

Please sign in to comment.