Open kemosabe102 opened 1 month ago
This should be addressed by the v2 crd generator.
The schema swap logic in v1 seems to handle this situation - that the values can be either the annotation instance of an AnnotationRef.
@shawkins is the v2 crd generator something that I could update to and try out? Or other options to workaround this?
It seems to be a Maven bug. I switched over to Gradle and am not having this issue any longer.
@shawkins is the v2 crd generator something that I could update to and try out? Or other options to workaround this?
The new maven plugin (which is using v2 crd generator under the hood) is ready for testing but not yet merged: https://github.com/fabric8io/kubernetes-client/pull/5979
Feedback welcome ;)
Describe the bug
It looks like there is an issue with dependency
sundr.model.AnnotationRef
where it cannot be cast asfabric8.generator.annotation.ValidationRule
when using@ValidationRule
annotation.This was working before but stopped working suddenly. Even after reverting to the last working commit, it still did not work.
Stack Trace
Maven Dependency Tree
Fabric8 Kubernetes Client version
6.13.1
Steps to reproduce
quarkus operator-sdk api -g halkyon.io -v v1 -k foo
@ValidationRule
to the class./mvnw compile quarkus:dev
Note: This was working for a while until it stopped working.
Expected behavior
Build should compile with
@ValidationRule
annotation defined.Runtime
other (please specify in additional context)
Kubernetes API Server version
1.25.3@latest
Environment
macOS
Fabric8 Kubernetes Client Logs
Additional context
Docker Desktop