Skip to content

Commit

Permalink
Merge pull request #624 from yue9944882/refactor/bump-v2
Browse files Browse the repository at this point in the history
Bump apiserver-builder to v2
  • Loading branch information
k8s-ci-robot authored Apr 3, 2022
2 parents 326a01b + 8a84532 commit e8140aa
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ same capabilities when building from scratch.
##### Install by Go Get

```bash
GO111MODULE=on go get sigs.k8s.io/apiserver-builder-alpha/cmd/apiserver-boot
go install sigs.k8s.io/apiserver-builder-alpha/v2/cmd/apiserver-boot@v2.0.0
```

##### Manual Download
Expand Down
12 changes: 6 additions & 6 deletions cmd/apiserver-boot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ package main
import (
"github.com/spf13/cobra"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/build"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/create"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/init_repo"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/run"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/show"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/version"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/build"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/create"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/init_repo"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/run"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/show"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/version"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module sigs.k8s.io/apiserver-builder-alpha
module sigs.k8s.io/apiserver-builder-alpha/v2

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/build/build_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra"
"io/ioutil"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

var Image string
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/build/build_resource_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

var Name, Namespace string
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/create/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/spf13/cobra"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

var createGroupCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/create/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/spf13/afero"
"github.com/spf13/cobra"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
config "sigs.k8s.io/kubebuilder/v3/pkg/config/v3"
"sigs.k8s.io/kubebuilder/v3/pkg/machinery"
"sigs.k8s.io/kubebuilder/v3/pkg/model/resource"
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/create/subresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

var subresourceName string
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/create/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/spf13/cobra"
utilvalidation "k8s.io/apimachinery/pkg/util/validation"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

func ValidateResourceFlags() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/create/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/spf13/cobra"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

var versionName string
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/init_repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/spf13/afero"
"github.com/spf13/cobra"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
config "sigs.k8s.io/kubebuilder/v3/pkg/config/v3"
"sigs.k8s.io/kubebuilder/v3/pkg/machinery"
"sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang/v3/scaffolds"
Expand Down
4 changes: 2 additions & 2 deletions pkg/boot/run/in_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (

"github.com/spf13/cobra"

"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/build"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/build"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

var runInClusterCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions pkg/boot/run/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/klog/v2"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/build"
"sigs.k8s.io/apiserver-builder-alpha/pkg/boot/util"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/build"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/boot/util"
)

var localCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/show/cmd_apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"sigs.k8s.io/apiserver-builder-alpha/pkg/utils"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/utils"
)

var showApiserverCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion pkg/boot/show/cmd_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"k8s.io/client-go/kubernetes"
apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1"
"k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset"
"sigs.k8s.io/apiserver-builder-alpha/pkg/utils"
"sigs.k8s.io/apiserver-builder-alpha/v2/pkg/utils"
)

var showResourceCmd = &cobra.Command{
Expand Down

0 comments on commit e8140aa

Please sign in to comment.