Skip to content

Commit

Permalink
Use v2 module
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Feb 21, 2023
1 parent e91819f commit 2d10d55
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions cmd/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"strings"
"time"

"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/cmd/linter"
"github.com/buildkite/agent-stack-k8s/monitor"
"github.com/buildkite/agent-stack-k8s/scheduler"
"github.com/buildkite/agent-stack-k8s/v2/api"
"github.com/buildkite/agent-stack-k8s/v2/cmd/linter"
"github.com/buildkite/agent-stack-k8s/v2/monitor"
"github.com/buildkite/agent-stack-k8s/v2/scheduler"
"github.com/go-playground/locales/en"
ut "github.com/go-playground/universal-translator"
"github.com/go-playground/validator/v10"
Expand Down
2 changes: 1 addition & 1 deletion cmd/linter/linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"log"
"os"

"github.com/buildkite/agent-stack-k8s/scheduler"
"github.com/buildkite/agent-stack-k8s/v2/scheduler"
"github.com/buildkite/go-buildkite/v3/buildkite"
"github.com/go-playground/validator/v10"
"github.com/spf13/cobra"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/buildkite/agent-stack-k8s
module github.com/buildkite/agent-stack-k8s/v2

go 1.19
go 1.20

require (
github.com/Khan/genqlient v0.5.0
Expand Down
4 changes: 2 additions & 2 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"time"

"github.com/Khan/genqlient/graphql"
"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/cmd/controller"
"github.com/buildkite/agent-stack-k8s/v2/api"
"github.com/buildkite/agent-stack-k8s/v2/cmd/controller"
"github.com/buildkite/go-buildkite/v3/buildkite"
"github.com/buildkite/roko"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/buildkite/agent-stack-k8s/cmd/controller"
"github.com/buildkite/agent-stack-k8s/v2/cmd/controller"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/Khan/genqlient/graphql"
"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/v2/api"
"go.uber.org/zap"
"k8s.io/client-go/kubernetes"
)
Expand Down
2 changes: 1 addition & 1 deletion monitor/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/v2/api"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
"k8s.io/client-go/kubernetes/fake"
Expand Down
2 changes: 1 addition & 1 deletion scheduler/completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/v2/api"
"go.uber.org/zap"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
4 changes: 2 additions & 2 deletions scheduler/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"sync"

"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/monitor"
"github.com/buildkite/agent-stack-k8s/v2/api"
"github.com/buildkite/agent-stack-k8s/v2/monitor"
"go.uber.org/zap"
batchv1 "k8s.io/api/batch/v1"
"k8s.io/client-go/informers"
Expand Down
6 changes: 3 additions & 3 deletions scheduler/limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"sync"
"testing"

"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/monitor"
"github.com/buildkite/agent-stack-k8s/scheduler"
"github.com/buildkite/agent-stack-k8s/v2/api"
"github.com/buildkite/agent-stack-k8s/v2/monitor"
"github.com/buildkite/agent-stack-k8s/v2/scheduler"
gomock "github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"
Expand Down
2 changes: 1 addition & 1 deletion scheduler/mock_handler_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strconv"
"strings"

"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/monitor"
"github.com/buildkite/agent-stack-k8s/v2/api"
"github.com/buildkite/agent-stack-k8s/v2/monitor"
"github.com/buildkite/agent/v3/clicommand"
"go.uber.org/zap"
batchv1 "k8s.io/api/batch/v1"
Expand Down
4 changes: 2 additions & 2 deletions scheduler/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"testing"

"github.com/buildkite/agent-stack-k8s/api"
"github.com/buildkite/agent-stack-k8s/monitor"
"github.com/buildkite/agent-stack-k8s/v2/api"
"github.com/buildkite/agent-stack-k8s/v2/monitor"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"
corev1 "k8s.io/api/core/v1"
Expand Down

0 comments on commit 2d10d55

Please sign in to comment.