Skip to content

Commit

Permalink
Update docs/book/src/plugins/go-v2-plugin.md
Browse files Browse the repository at this point in the history
Co-authored-by: Bryce Palmer <everettraven@gmail.com>
  • Loading branch information
2 people authored and Camila Macedo committed Jun 16, 2022
1 parent 580b841 commit 18e2441
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions docs/book/src/plugins/go-v2-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
<aside class="note warning">
<h1>Deprecated</h1>

The `go/v2` plugin cannot scaffold solutions which uses CRD and/or Webhooks with the v1 version and properly
work with the plugins ecosystem introduced with Kubebuilder `3.0.0`[More info](plugins.md). Note that `v1beta1` was deprecated on Kubernetes `1.16` and no longer is offered since its release `1.22`.
Therefore, this plugin was kept to ensure the backwords compability with old Kubebuilder versions
scaffolds produced with `"Kubebuilder 2.x"` layout.
The `go/v2` plugin cannot scaffold projects in which CRDs and/or Webhooks have a `v1` API version.
The `go/v2` plugin scaffolds with the `v1beta1` API version which was deprecated in Kubernetes `1.16` and removed in `1.22`.
This plugin was kept to ensure backwards compatibility with projects that were scaffolded with the old `"Kubebuilder 2.x"` layout and does not work with the new plugin ecosystem that was introduced with Kubebuilder `3.0.0` [More info](plugins.md)

Since `28 Apr 2021`, the default layout produced by Kubebuilder changed and is done via the `go/v3`.
We encourage you migrate your project to the latest version if your project was built with a Kubebuilder
Expand Down
8 changes: 4 additions & 4 deletions pkg/plugins/golang/v2/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ func (p Plugin) GetEditSubcommand() plugin.EditSubcommand { return &p.editSubcom

func (p Plugin) DeprecationWarning() string {
return "This version is deprecated and is no longer scaffolded by default since `28 Apr 2021`." +
"The `go/v2` plugin cannot scaffold solutions which uses CRD and/or Webhooks using the v1 API version." +
"Be aware that v1beta1 API for CRDs and Webhooks were deprecated on Kubernetes 1.16 and are" +
"no longer offered since its 1.22 release. Therefore, since this plugin cannot produce projects which" +
"are workable for Kubernetes versions >= 1.22 it is recommended upgrade your project " +
"The `go/v2` plugin cannot scaffold projects in which CRDs and/or Webhooks have a `v1` API version." +
"Be aware that v1beta1 API for CRDs and Webhooks was deprecated on Kubernetes 1.16 and are" +
"removed as of the Kubernetes 1.22 release. Therefore, since this plugin cannot produce projects that" +
"work on Kubernetes versions >= 1.22, it is recommended to upgrade your project " +
"to the latest versions available."
}

0 comments on commit 18e2441

Please sign in to comment.