diff --git a/cmd/main.go b/cmd/main.go index 7ce32576305..7dc5d59d92e 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -25,6 +25,7 @@ import ( cfgv2 "sigs.k8s.io/kubebuilder/v3/pkg/config/v2" cfgv3 "sigs.k8s.io/kubebuilder/v3/pkg/config/v3" "sigs.k8s.io/kubebuilder/v3/pkg/machinery" + "sigs.k8s.io/kubebuilder/v3/pkg/model/stage" "sigs.k8s.io/kubebuilder/v3/pkg/plugin" kustomizecommonv1 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/common/kustomize/v1" kustomizecommonv2alpha "sigs.k8s.io/kubebuilder/v3/pkg/plugins/common/kustomize/v2-alpha" @@ -43,6 +44,11 @@ func main() { kustomizecommonv1.Plugin{}, golangv3.Plugin{}, ) + // Bundle plugin which built the golang projects scaffold by Kubebuilder go/v3 with kustomize alpha-v2 + gov4Bundle, _ := plugin.NewBundle(golang.DefaultNameQualifier, plugin.Version{Number: 4, Stage: stage.Alpha}, + kustomizecommonv2alpha.Plugin{}, + golangv3.Plugin{}, + ) fs := machinery.Filesystem{ FS: afero.NewOsFs(), @@ -59,6 +65,7 @@ func main() { golangv2.Plugin{}, golangv3.Plugin{}, gov3Bundle, + gov4Bundle, &kustomizecommonv1.Plugin{}, &kustomizecommonv2alpha.Plugin{}, &declarativev1.Plugin{}, diff --git a/docs/book/src/SUMMARY.md b/docs/book/src/SUMMARY.md index 59f43ae805b..6e1e3aab866 100644 --- a/docs/book/src/SUMMARY.md +++ b/docs/book/src/SUMMARY.md @@ -111,9 +111,12 @@ - [Available Plugins](./plugins/available-plugins.md) - [go/v2 plugin (Deprecated)](./plugins/go-v2-plugin.md) - [go/v3 plugin](./plugins/go-v3-plugin.md) - - [Declarative V1](./plugins/declarative-v1.md) - - [grafana/v1-alpha](./plugins/grafana-v1-alpha.md) + - [go/v4-alpha plugin](./plugins/go-v4-plugin.md) - [Kustomize V1](./plugins/kustomize-v1.md) + - [Kustomize v2 Alpha](./plugins/kustomize-v2-alpha.md) + - [Declarative V1 (Optional Feature)](./plugins/declarative-v1.md) + - [Grafana V1 Alpha (Optional Feature)](./plugins/grafana-v1-alpha.md) + - [Deploy Image V1 Alpha (Optional Feature)](./plugins/deploy-image-plugin-v1-alpha.md) - [Plugins Versioning](./plugins/plugins-versioning.md) --- diff --git a/docs/book/src/migration/migration_guide_v2tov3.md b/docs/book/src/migration/migration_guide_v2tov3.md index be60fb9cb50..92f7f999281 100644 --- a/docs/book/src/migration/migration_guide_v2tov3.md +++ b/docs/book/src/migration/migration_guide_v2tov3.md @@ -36,14 +36,6 @@ not needed inside `GOPATH`, it is still recommended. ```bash go mod init tutorial.kubebuilder.io/migration-project ``` -