From e83c9d73164ad2a25b87a0c9f95d41d6ac862ccb Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Thu, 16 Jun 2022 07:50:41 +0100 Subject: [PATCH 1/2] :warning: officially deprecate go/v2 plugin Co-authored-by: Bryce Palmer --- docs/book/src/SUMMARY.md | 2 +- docs/book/src/plugins/available-plugins.md | 6 ++--- docs/book/src/plugins/go-v2-plugin.md | 27 ++++++++++++++++++---- pkg/config/v2/config.go | 1 + pkg/config/v2/config_test.go | 1 + pkg/plugins/golang/v2/api.go | 1 + pkg/plugins/golang/v2/edit.go | 1 + pkg/plugins/golang/v2/init.go | 1 + pkg/plugins/golang/v2/plugin.go | 10 ++++++++ pkg/plugins/golang/v2/webhook.go | 1 + test/e2e/v2/e2e_suite_test.go | 1 + test/e2e/v2/plugin_cluster_test.go | 1 + test/e2e/v3/plugin_cluster_test.go | 2 ++ 13 files changed, 47 insertions(+), 8 deletions(-) diff --git a/docs/book/src/SUMMARY.md b/docs/book/src/SUMMARY.md index 5ddc0ec37d7..b22a120a3f9 100644 --- a/docs/book/src/SUMMARY.md +++ b/docs/book/src/SUMMARY.md @@ -109,8 +109,8 @@ - [Extending the CLI](./plugins/extending-cli.md) - [Creating your own plugins](./plugins/creating-plugins.md) - [Available Plugins](./plugins/available-plugins.md) + - [go/v2 plugin (Deprecated)](./plugins/go-v2-plugin.md) - [go/v3 plugin](./plugins/go-v3-plugin.md) - - [go/v2 plugin](./plugins/go-v2-plugin.md) - [Declarative V1](./plugins/declarative-v1.md) - [Kustomize V1](./plugins/kustomize-v1.md) - [Plugins Versioning](./plugins/plugins-versioning.md) diff --git a/docs/book/src/plugins/available-plugins.md b/docs/book/src/plugins/available-plugins.md index 213be4d8adf..b4eef9f55ab 100644 --- a/docs/book/src/plugins/available-plugins.md +++ b/docs/book/src/plugins/available-plugins.md @@ -4,11 +4,11 @@ This section describes the plugins supported and shipped in with the Kubebuilder | Plugin | Key | Description | |---|---|---| -| [go.kubebuilder.io/v3](go-v3-plugin.md) | `go/v3` | Default scaffold to create the projects when none plugin(s) are informed. Responsible for scaffold the Golang project and its configurations. | -| [go.kubebuilder.io/v2](go-v2-plugin.md) | `go/v2` | Golang plugin responsible for scaffold the legacy layout provided with Kubebuilder CLI >= `2.0.0` and < `3.0.0`. | +| [go.kubebuilder.io/v2 - (Deprecated)](go-v2-plugin.md) | `go/v2` | Golang plugin responsible for scaffolding the legacy layout provided with Kubebuilder CLI >= `2.0.0` and < `3.0.0`. | +| [go.kubebuilder.io/v3 - (Default scaffold with Kubebuilder init)](go-v3-plugin.md) | `go/v3` | Default scaffold to create the projects when none plugin(s) are informed. Responsible for scaffold the Golang project and its configurations. | | [declarative.go.kubebuilder.io/v1](declarative-v1.md) | `declarative/v1` | Optional plugin used to scaffold APIs/controllers using the [kubebuilder-declarative-pattern][kubebuilder-declarative-pattern] project. | | [kustomize.common.kubebuilder.io/v1](kustomize-v1.md) | `kustomize/v1` | Responsible for scaffold all manifests to configure the projects with [kustomize(v3)][kustomize]. (create and update the the `config/` directory). This plugin is used in the composition to create the plugin (`go/v3`). | -| [kustomize.common.kubebuilder.io/v1](kustomize-v2-alpha.md) | `kustomize/v2-alpha` | It has the same purpose of `kustomize/v1`. However, it works with [kustomize][kustomize] version `v4` and address the required changes for the future kustomize configurations. It will probably be used with the future `go/v4-alpha` plugin. | +| [kustomize.common.kubebuilder.io/v2-alpha](kustomize-v2-alpha.md) | `kustomize/v2-alpha` | It has the same purpose of `kustomize/v1`. However, it works with [kustomize][kustomize] version `v4` and addresses the required changes for future kustomize configurations. It will probably be used with the future `go/v4-alpha` plugin. | | `base.go.kubebuilder.io/v3` | `base/v3` | Responsible for scaffold all files which specific requires Golang. This plugin is used in the composition to create the plugin (`go/v3`) |