Skip to content

Commit

Permalink
refactoring credential-provider to github.com/aws/eks-anywhere-packag…
Browse files Browse the repository at this point in the history
…es/credentialproviderpackage (#872)
  • Loading branch information
junshun authored Mar 14, 2023
1 parent 318fba4 commit 183c7f3
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions credentialproviderpackage/cmd/aws-credential-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"github.com/fsnotify/fsnotify"

cfg "credential-provider/pkg/configurator"
"credential-provider/pkg/configurator/bottlerocket"
"credential-provider/pkg/configurator/linux"
"credential-provider/pkg/constants"
"credential-provider/pkg/log"
cfg "github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/configurator"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/configurator/bottlerocket"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/configurator/linux"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/constants"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion credentialproviderpackage/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module credential-provider
module github.com/aws/eks-anywhere-packages/credentialproviderpackage

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion credentialproviderpackage/internal/test/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"regexp"
"testing"

"credential-provider/pkg/filewriter"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/filewriter"
)

var UpdateGoldenFiles = flag.Bool("update", false, "update golden files")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"net/http"
"os"

"credential-provider/pkg/configurator"
"credential-provider/pkg/constants"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/configurator"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/constants"
)

type bottleRocket struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/stretchr/testify/assert"

"credential-provider/pkg/constants"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/constants"
)

type response struct {
Expand Down
2 changes: 1 addition & 1 deletion credentialproviderpackage/pkg/configurator/configurator.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package configurator

import "credential-provider/pkg/constants"
import "github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/constants"

type Configurator interface {
// Initialize Handles node specific configuration depending on OS
Expand Down
8 changes: 4 additions & 4 deletions credentialproviderpackage/pkg/configurator/linux/linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (

ps "github.com/mitchellh/go-ps"

"credential-provider/pkg/configurator"
"credential-provider/pkg/constants"
"credential-provider/pkg/log"
"credential-provider/pkg/templater"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/configurator"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/constants"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/log"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/templater"
)

//go:embed templates/credential-provider-config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/stretchr/testify/assert"

"credential-provider/internal/test"
"credential-provider/pkg/constants"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/internal/test"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/constants"
)

func Test_linuxOS_updateKubeletArguments(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/google/go-cmp/cmp"

"credential-provider/pkg/filewriter"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/filewriter"
)

func TestTmpWriterWriteValid(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions credentialproviderpackage/pkg/filewriter/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"testing"

"credential-provider/internal/test"
"credential-provider/pkg/filewriter"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/internal/test"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/filewriter"
)

func TestWriterWriteValid(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions credentialproviderpackage/pkg/templater/partialyaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"credential-provider/internal/test"
"credential-provider/pkg/templater"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/internal/test"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/templater"
)

func TestPartialYamlAddIfNotZero(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion credentialproviderpackage/pkg/templater/templater.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"text/template"

"credential-provider/pkg/filewriter"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/filewriter"
)

type Templater struct {
Expand Down
6 changes: 3 additions & 3 deletions credentialproviderpackage/pkg/templater/templater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strings"
"testing"

"credential-provider/internal/test"
"credential-provider/pkg/filewriter"
"credential-provider/pkg/templater"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/internal/test"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/filewriter"
"github.com/aws/eks-anywhere-packages/credentialproviderpackage/pkg/templater"
)

func TestTemplaterWriteToFileSuccess(t *testing.T) {
Expand Down

0 comments on commit 183c7f3

Please sign in to comment.