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

Is Go 1.18 supported by Kubebuilder 3.4.0? #2670

Closed
davisoares454 opened this issue May 3, 2022 · 2 comments
Closed

Is Go 1.18 supported by Kubebuilder 3.4.0? #2670

davisoares454 opened this issue May 3, 2022 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation.

Comments

@davisoares454
Copy link

What broke? What's expected?

Hi, all. I'm starting a new project using Kubebuilder. I already used Kubebuilder before to build some operators, and I saw that there was a new version for Kubebuilder. I also saw that a new Go version was out, so I went to test it out with Kubebuilder.
I entered the Kubebuilder book website and searched for the Quick start page, and there I saw some prerequisites. Reading that, I got a bit confused, because it says: "go version v1.17+ < v1.18 (kubebuilder v3.3+).", so I didn't know if I was able to use 1.17 Go version or 1.18 because it doesn't use ">=" (higher or equal) to describe the version.

Therefore, I went to use Go version 1.18 with Kubebuilder 3.4.0. Created a basic project that plays with the created API and Controller, basically it manages fields values from the CR. Everything worked fine so far.

I would like to know if there's any specific problem by using this Go version (1.18) with this Kubebuilder version (3.4.0).
Thanks in advance!

Reproducing this issue

Commands that I used to scaffold a project.

go mod init github.com/test/mylocal

kubebuilder init --domain test.mylocal

kubebuilder create api --group tester --version v1alpha1 --kind HandsOn

KubeBuilder (CLI) Version

Version: main.version{KubeBuilderVersion:"3.4.0", KubernetesVendor:"1.23.5", GitCommit:"75241ab9ff9457de77e902645792cee41ba29fed", BuildDate:"2022-04-28T17:09:31Z", GoOs:"linux", GoArch:"amd64"}

PROJECT version

No response

Plugin versions

No response

Other versions

No response

Extra Labels

/kind documentation

@davisoares454 davisoares454 added the kind/bug Categorizes issue or PR as related to a bug. label May 3, 2022
@k8s-ci-robot k8s-ci-robot added the kind/documentation Categorizes issue or PR as related to documentation. label May 3, 2022
@everettraven
Copy link
Contributor

Hi @davisoares454 with Kubebuilder release 3.4.0 there were some updates to help support Go 1.18 in the future. Go 1.18 is not officially supported yet due to some potential dependency compatibility issues. This is information that was given in a Slack post when 3.4.0 was released.

You can find the Slack message that announces the Kubebuilder 3.4.0 release here: https://kubernetes.slack.com/archives/CAR30FCJZ/p1651169166108379

I hope this helps!

@camilamacedo86
Copy link
Member

I am closing this as duplicated of: #2559
See the comment #2559 (comment) to know what needs to be done for we can support.

The release 3.4.0 still does not support go 1.18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

4 participants