-
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
CRD generator sporadically doesn't respect storage
-field in @Version
annotation
#5507
Comments
Hi @thomasdraebing and thanks for filing this issue! I attempted to reproduce your issue here, and I think I'm hitting a slightly different(still not correct) behavior. More specifically, when the 2 spec POJOs are identical I consistently get an exception in the tests:
If I add a random annotation on one of the fields(like the commented I think this is evidence enough that there are inconsistencies and, possibly, concurrency issues here. I would be glad if @metacosm can take a peek at this one. |
As far as I remember @metacosm you were going to have a look. Feel free to unassign it if I was wrong. :) |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
This should have been fixed by #5846. The latest released version of the client should work as expected: https://github.com/fabric8io/kubernetes-client/releases/tag/v6.12.1 |
Describe the bug
When multiple versions for a single CustomResource exist and all but one set
storage = false
in the@Version
annotation, the generated CRD sometimes (~50 % of the time) contains multiple versions withstorage: true
, which is invalid.Fabric8 Kubernetes Client version
6.6.2
Steps to reproduce
CustomResource
with two versions:Expected behavior
The generated CRD only contains a single version where
storage
istrue
.Runtime
other (please specify in additional context)
Kubernetes API Server version
other (please specify in additional context)
Environment
macOS
Fabric8 Kubernetes Client Logs
Additional context
Kubernetes provider: Gardener
Kubernetes version: 1.26.7
The text was updated successfully, but these errors were encountered: