Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Dec 4, 2024
1 parent 77be672 commit e13403e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion integrations/lib/testing/fakejoin/kubesigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package fakejoin
import (
"encoding/json"
"fmt"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"time"

"github.com/go-jose/go-jose/v3"
Expand All @@ -31,6 +30,7 @@ import (
"github.com/jonboulle/clockwork"

"github.com/gravitational/teleport/lib/cryptosuites"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
)

// KubernetesSigner is a JWT signer that mimicks the Kubernetes one. The signer mock Kubernetes and
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"encoding/pem"
"errors"
"fmt"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"io"
"log/slog"
"math/big"
Expand Down Expand Up @@ -101,6 +100,7 @@ import (
"github.com/gravitational/teleport/lib/githubactions"
"github.com/gravitational/teleport/lib/gitlab"
"github.com/gravitational/teleport/lib/inventory"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
kubeutils "github.com/gravitational/teleport/lib/kube/utils"
"github.com/gravitational/teleport/lib/limiter"
"github.com/gravitational/teleport/lib/loginrule"
Expand Down
4 changes: 2 additions & 2 deletions lib/auth/bot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
"encoding/base64"
"encoding/json"
"encoding/pem"
"github.com/gravitational/teleport/lib/kube/token"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"net/http"
"strings"
"testing"
Expand Down Expand Up @@ -64,6 +62,8 @@ import (
libevents "github.com/gravitational/teleport/lib/events"
"github.com/gravitational/teleport/lib/events/eventstest"
"github.com/gravitational/teleport/lib/fixtures"
"github.com/gravitational/teleport/lib/kube/token"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"github.com/gravitational/teleport/lib/reversetunnelclient"
"github.com/gravitational/teleport/lib/tbot/identity"
"github.com/gravitational/teleport/lib/tlsca"
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/join/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"context"
"crypto"
"crypto/x509"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"log/slog"
"os"
"time"
Expand Down Expand Up @@ -51,6 +50,7 @@ import (
"github.com/gravitational/teleport/lib/defaults"
"github.com/gravitational/teleport/lib/githubactions"
"github.com/gravitational/teleport/lib/gitlab"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"github.com/gravitational/teleport/lib/spacelift"
"github.com/gravitational/teleport/lib/terraformcloud"
"github.com/gravitational/teleport/lib/tlsca"
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/join_kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ package auth
import (
"context"
"fmt"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"time"

"github.com/gravitational/trace"
"github.com/sirupsen/logrus"

"github.com/gravitational/teleport/api/types"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
)

type k8sTokenReviewValidator interface {
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/join_kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package auth

import (
"context"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
"testing"
"time"

Expand All @@ -29,6 +28,7 @@ import (

"github.com/gravitational/teleport/api/types"
"github.com/gravitational/teleport/lib/auth/testauthority"
kubetoken "github.com/gravitational/teleport/lib/kube/token"
)

type mockK8STokenReviewValidator struct {
Expand Down

0 comments on commit e13403e

Please sign in to comment.