-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support go 1.18 #2559
Comments
@camilamacedo86 i would like to do this, pretty new to kubebuilder so i was wondering if this could be a issue to start with |
/assign |
I think that is good @AvineshTripathi. |
Looking at previous bump of go version in kubebuilder 15e3ef3 for 1.15->1.16 all the dockerfiles present in the docs/books/src were too updated to new version, also some other changes done in the plugins as seen in the above link so are we suppose to do the same this time @camilamacedo86 |
/assign |
Not sure if this needs a whole other issue, I can create one if needed. Currently, the version of kube builder available through home brew depends on golang 1.18 , and it doesn't work with the same create-api errors reported. |
We probably need to have a new release to solve it. Merging it will allow you to temporary solve it by using the |
Hi @abeer91, the brew formula is not kept maintained by us. |
Thanks @camilamacedo86 , do you know who maintains this? |
Hey @camilamacedo86 , I found similar to above issue in one of KataCoda scenario,
|
Hi @viveksahu26, The 1.18 is not supported so far. So, trying to use the latest Kubebuilder release with go 1.18 will fail. |
This issue was discussed in the C+R, Kubebuilder meeting yesterday. @AlmogBaku, thank you for helping us identify the impact and how we can address this requirement. @varshaprasad96 raised a good point and check that we had been only updating the go version to officially support when we update the deps to avoid issues faced in the past. She could identify some scenarios such as:
Therefore, to bump the go version 1.18 for the go/v3 plugin:
Then, to update the Kubebuilder CLI/API: The config-gen ( which is an alpha, experimental and optional option ) uses controller tools as dep importing the code. So we also need to:
Additionally
I am adding this info to the description so that we can clarify what needs to be done here so we are able to accomplish this goal. |
I think go/v2 should also use go 1.18; there is no reason not to do so :) |
Hi @AlmogBaku, We can only update go/v2 to use go version 1.18 if we are able to upgrade the controller runtime and k8s deps used on it. Then, if we want to do that we need to check if has any reason for we have been not updating the go/v2 first. |
Hi @AlmogBaku, We will also need to update and change the release tools to work with go 1.18
|
Hi @camilamacedo86 is it ok if I pick these tasks up? We are blocked on this for upgrading to go 1.18 at Thought Machine so would like to try help accelerate this as much as possible.
|
HI @Vaxuite, The first step is we have a controller runtime and controller-tools release, which supports go 1.18. Have we that already? Would you like to help with this? I do not think that @AlmogBaku is working on this part. |
Also, just to supplement. I checked that go/v2 can only scaffold v1beta1 CRD versions ( since it is the legacy layout ). Therefore, we would only be able to upgrade it to use:
In this way, we cannot upgrade this one. |
@camilamacedo86 I've done the controller runtime pr https://github.com/kubernetes-sigs/controller-runtime/pull/1895/files. Ill have a look at controller-tools in the coming days. |
Are you sure we need to update controller-runtime @camilamacedo86 it already works with go 1.18? |
Hi, As far as I know, we're waiting for controller-runtime and controller-tools releases |
Just as information. I am developping an operator with go1.18 and k8s 1.24.0. I had problems with $ go install -v sigs.k8s.io/controller-tools/cmd/controller-gen@master
$ cp $HOME/go/bin/controller-gen $PROJECT_PATH/bin/ Update |
@AlmogBaku looks like new releases for controller-runtime and controller-tools are both out now. |
We are blocked by: kubernetes-sigs/kubebuilder-declarative-pattern#217 now. |
Hi. for anyone struggling with this issue you can scaffold by using the go/v2 ie run kubebuilder init --plugins go/v2 as you can see,you are using the go/v2 instead of go/v3 plugin..and once you run kubebuilder create api there will be no issue even if you are using Go 1.81..So I guess this allows you to use kubebuilder with Go 1.81 while waiting for the upgrades to be made.. |
I started a PR in the homebrew-core repo to fix the go version dependency: Homebrew/homebrew-core#102791 |
kubernetes-sigs/kubebuilder-declarative-pattern#217 has merged 🎉 cc. @camilamacedo86 |
From now on, master branch should support go 1.18 |
Thx. When is a release planed? |
#1614 |
@qingfengfenga please, open a new issue with your specific problem and providing the details steps to allow us to reproduce it. |
@camilamacedo86 Sorry, when I checked the version and prepared to reproduce it locally, I found that my document was not the latest (translated version in other languages). After I checked the latest document, using go1.18.1 can complete all functions of cronjob, except testing ( #2642 I found the description of the test problem here). Thank you. |
What do you want to happen?
Make Kubebuilder supports Golang 1.18
Following the main places that need to be changed to achieve this goal:
Following what was identified that would also be required to be done to achieve this goal
We should NOT
Extra Labels
No response
The text was updated successfully, but these errors were encountered: