-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
The CustomResourceDefinition "cronjobs.batch.tutorial.kubebuilder.io" is invalid #1544
Comments
/assign @camilamacedo86 |
If I use kubernentes 1.16, it won't happen. I guess it's a problem after kubernetes 1.18. |
Hi @zehuaiWANG, The |
/assign @camilamacedo86 |
This is likely related to kubernetes-sigs/controller-tools#444. |
Hi @estroz, See that the user is trying to check the example code in the repo:
The project |
So how to solve this issue? I encountered exactly the same problem when learning kubebuilder. 😟 |
@keithnull if you use the minikube, you can change the version of kubernetes to 1.16, and it will not happen. |
@zehuaiWANG Thanks, but it's just a work-around. Any way to solve this problem in 1.18? |
@keithnull I haven't found a good way to solve this problem in kubernetes 1.18, this seems to be caused by a field validation introduced by kubernetes 1.18. |
Hi @keithnull, The project cronjob-tutorial/testdata/project has not been updated with the changes made in the tool. We need to update this project. You can check the testdadata/ dir where has projects which are updated and verified for each PR. However, regards the k8s version its has changes we would need to check the error to better assist you. See #933 and #1065 which might helps you with. Also, I'd recommend you use the tool to follow up the steps and build the tutorial example instead of trying to use it. |
Seems to be fixed by kubernetes-sigs/controller-tools#440 |
I started out with building the project by following the instructions on the tutorial and I got the error. Then I tried cloning the project and still see the same error.
|
The issue still:
As @estroz described it shows to be related to kubernetes-sigs/controller-tools#444 and after we get merged the changes in the PR #1644 and update the examples in the |
Any workaround till latest controller-tools is merged?
thanks! |
Do we have any solution about this issue? My CRD contains a field of PodTemplateSpec also can't be installed into a 1.18 k8s cluster. |
Here is how i solved the issue;
|
I followed the tutorial but the cronjob install failed. I clone the master code, but it seems to not work. Could anyone tell me what to do next? Thanks a lot.
/kind bug
The text was updated successfully, but these errors were encountered: