Kubernetes Client cannot create Lease
resources in native mode
#25829
Labels
Milestone
Lease
resources in native mode
#25829
Describe the bug
If you try to create a
Lease
with the Kubernetes Client in native mode, then it fails with the following error returned from the API server:The problem seems to be that the serialization of the
ZonedDateTime
fields onLeaseSpec
is incorrect. In JVM mode, the serializedLease
JSON looks like:In native mode it is (note the differences in date format):
acquireTime
andrenewTime
are configured like:For the
@JsonFormat
to take effect properly, I had to registerLeaseSpec
for reflective field access. Seems only method access is configured for it by default.It's simple to reproduce the issue outside of k8s like:
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: