You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CRDGenerator does not detect that multiple schema versions are marked as stored if two or more versions are provided. This is not allowed for a CRD.
The CRDGenerator already includes a check to detect this, but it is not working because the check is executed too early in the decorator chain.
The text was updated successfully, but these errors were encountered:
baloo42
changed the title
CRDGenerator allows setting multiple custom resource versions as stored
CRDGenerator allows setting multiple custom resource versions as stored but should not
Mar 30, 2024
Describe the bug
The CRDGenerator does not detect that multiple schema versions are marked as stored if two or more versions are provided. This is not allowed for a CRD.
The CRDGenerator already includes a check to detect this, but it is not working because the check is executed too early in the decorator chain.
Fabric8 Kubernetes Client version
6.11.0
Steps to reproduce
Run this test:
kubernetes-client/crd-generator/api/src/test/java/io/fabric8/crd/generator/CRDGeneratorTest.java
Line 190 in 0c80a66
Expected behavior
The test should fail but does not because both versions of the "Multiple" example are marked as stored:
https://github.com/fabric8io/kubernetes-client/tree/0c80a66d10bf7096864246ce453413e0da4edbd2/crd-generator/api/src/test/java/io/fabric8/crd/example/multiple
Runtime
other (please specify in additional context)
Kubernetes API Server version
other (please specify in additional context)
Environment
other (please specify in additional context)
Fabric8 Kubernetes Client Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: