-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus kubernetes extension does not register CustomResources from dependent packages #38657
Labels
Comments
I assume that the Java Operator SDK extension handles this, right @metacosm? |
Actually, this is what #38586 is supposed to fix. |
I found that this is already solved by this PR: #38586. |
Gotcha, thanks |
metacosm
added a commit
to quarkiverse/quarkus-operator-sdk
that referenced
this issue
Feb 8, 2024
Fixes #824 Previously, we were only registering the class itself for reflection, we now register the full hierarchy instead. Signed-off-by: Chris Laprun <claprun@redhat.com>
metacosm
added a commit
to quarkiverse/quarkus-operator-sdk
that referenced
this issue
Feb 8, 2024
Fixes #824 Previously, we were only registering the class itself for reflection, we now register the full hierarchy instead. Signed-off-by: Chris Laprun <claprun@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Error in native executable when CustomResource is not registered for reflection.
cannot deserialize from Object value (no delegate- or property-based Creator): this appears to be a native image, in which case you may need to configure reflection for the class that is to be deserialized
Expected behavior
CustomResources should be registered for reflection although they are part of an external dependency.
Actual behavior
CustomResources are not registered for reflection if they are part of an external dependency. You have to add @RegisterForReflection
How to Reproduce?
io.fabric8.kubernetes.client.CustomResource
.quarkus.index-dependency.model.group-id
andquarkus.index-dependency.model.artifact-id
to point to projectOutput of
uname -a
orver
OpenShift
Output of
java -version
17
Mandrel or GraalVM version (if different from Java)
quay.io/quarkus/ubi-quarkus-mandrel-builder-image:23.0-jdk-17
Quarkus version or git rev
3.7.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6
Additional information
No response
The text was updated successfully, but these errors were encountered: