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
Project build with gradle, using org.springframework.boot and org.graalvm.buildtools.native.
As dependency we have, among others:
io.kubernetes:client-java
io.kubernetes:client-java-extended
io.kubernetes:client-java-spring-aot-integration
There are no problems with java build and java runtime, problem is native build with graalvm plugin.
With client versions 19.0.0 and 20.0.0-legacy, during processAot task, all model from io.kubernetes.client.openapi.models package is registered and processed to reflect-config.json.
But not with version 20.0.0, which in native build runtime ends up with root cause (for example):
java.lang.IllegalArgumentException: Type io.kubernetes.client.openapi.models.VersionInfo is instantiated reflectively but was never registered. Register the type by adding "unsafeAllocated" for the type in reflect-config.json.
I assume, that something was forgotten when implementing breaking changes..
I have already rewritten all the calls to the changes brought by version 20.0.0, I would not like to revert everything to the legacy version,
Client Version
20.0.0
Kubernetes Version
1.28.7
Java Version
With client 19.0.0 was used Java 17, spring boot 3.1.5 and graalvm build tools 0.9.27.
With client 20.0.0 and 20.0.0-legacy was used Java 21, spring boot 3.2.2 and graalvm build tools 0.10.0
Expected behavior
Model should be registered with version 20.0.0 in same way as with 19.0.0 or 20.0.0-legacy
The text was updated successfully, but these errors were encountered:
Describe the bug
Project build with gradle, using org.springframework.boot and org.graalvm.buildtools.native.
As dependency we have, among others:
There are no problems with java build and java runtime, problem is native build with graalvm plugin.
With client versions 19.0.0 and 20.0.0-legacy, during processAot task, all model from io.kubernetes.client.openapi.models package is registered and processed to reflect-config.json.
But not with version 20.0.0, which in native build runtime ends up with root cause (for example):
java.lang.IllegalArgumentException: Type io.kubernetes.client.openapi.models.VersionInfo is instantiated reflectively but was never registered. Register the type by adding "unsafeAllocated" for the type in reflect-config.json.
I assume, that something was forgotten when implementing breaking changes..
I have already rewritten all the calls to the changes brought by version 20.0.0, I would not like to revert everything to the legacy version,
Client Version
20.0.0
Kubernetes Version
1.28.7
Java Version
With client 19.0.0 was used Java 17, spring boot 3.1.5 and graalvm build tools 0.9.27.
With client 20.0.0 and 20.0.0-legacy was used Java 21, spring boot 3.2.2 and graalvm build tools 0.10.0
Expected behavior
Model should be registered with version 20.0.0 in same way as with 19.0.0 or 20.0.0-legacy
The text was updated successfully, but these errors were encountered: