-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Describe the bug
The kubernetes java client is built against Java 8. This leads to a plethora of issues when using newer JDKs in projects.
Client Version
Any
Kubernetes Version
Doesn't matter
Java Version
Java 8
To Reproduce
Any Build
Expected behavior
kubernetes-client is built against a new, well supported, version of Java
KubeConfig
Not applicable
Server (please complete the following information):
Not Applicable
Additional context
As just one example, Bytebuddy (used for Mockito in testing, among others) can no longer enhance bytecode for the kubernetes client in combination with OpenJDK 21 without adding a flag for experimental support.
In #2452 some sort of workaround is laid out to be able to use the kubernetes client with Spring 6. More importantly, it is mentioned that:
because we need to maintain Java 8 compatability
And I strongly wonder why there is this need. I couldn't find it personally. Wouldn't it be more apt to move on to a new, well supported, version of Java and let projects that are stuck on Java 8 deal with it by forking this repo instead?