Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade the kubernetes api version from v1beta1 to v1 #89

Open
phantomjinx opened this issue Nov 29, 2023 · 1 comment
Open

Upgrade the kubernetes api version from v1beta1 to v1 #89

phantomjinx opened this issue Nov 29, 2023 · 1 comment

Comments

@phantomjinx
Copy link
Member

Using kubebuilder on the project displayed the following message:

⌁ [: … hawtio-operator] 1.x+* ± kubebuilder version
[Deprecation Notice] This version is deprecated and is no longer scaffolded by default since `28 Apr 2021`.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 areremoved as of the Kubernetes 1.22 release. Therefore, since this plugin cannot produce projects thatwork on Kubernetes versions >= 1.22, it is recommended to upgrade your project to the latest versions available.

Version: main.version{KubeBuilderVersion:"3.13.0", KubernetesVendor:"1.27.1", GitCommit:"c8a7cc58eeb56586c019cf8845dad37286d077ff", BuildDate:"2023-11-02T20:43:44Z", GoOs:"linux", GoArch:"amd64"}

This highlights that the CRD API is using a deprecated version and may well stop working at some point. We should aim to upgrade the project to remove the deprecations.

@phantomjinx
Copy link
Member Author

Looking into this further, it looks like this is the go/v2 plugin in the PROJECT file that needs to be upgraded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant