We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This worked in 19.0.0:
kube.listNamespacedService(namespace, null, null, null, null, labelSelector, null, null, null, null, null);
But it breaks in 20.0.0:
[ERROR] required: java.lang.String [ERROR] found: java.lang.String,<nulltype>,<nulltype>,<nulltype>,<nulltype>,java.lang.String,<nulltype>,<nulltype>,<nulltype>,<nulltype>,<nulltype> [ERROR] reason: actual and formal argument lists differ in length
https://javadoc.io/static/io.kubernetes/client-java-api/20.0.0/io/kubernetes/client/openapi/apis/CoreV1Api.html#listNamespacedService(java.lang.String) makes no mention of this breaking change and how to migrate old code that requires any of the parameters other than the namespace.
Also the changelog file (https://github.com/kubernetes-client/java/blob/master/CHANGELOG.md) cuts off at 14.0.0 so no luck finding this breaking change there either.
The text was updated successfully, but these errors were encountered:
@gyorokpeter the breaking change is noted here https://github.com/kubernetes-client/java?tab=readme-ov-file#release
Sorry, something went wrong.
to obtain the backward-compatible client module, adding a -legacy suffix to the version will do
-legacy
In the meantime we found this example: https://github.com/kubernetes-client/java/blob/master/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/WatchExample.java
It would still be useful to update the docs to better explain how to migrate from the old to the new style API.
No branches or pull requests
This worked in 19.0.0:
But it breaks in 20.0.0:
https://javadoc.io/static/io.kubernetes/client-java-api/20.0.0/io/kubernetes/client/openapi/apis/CoreV1Api.html#listNamespacedService(java.lang.String) makes no mention of this breaking change and how to migrate old code that requires any of the parameters other than the namespace.
Also the changelog file (https://github.com/kubernetes-client/java/blob/master/CHANGELOG.md) cuts off at 14.0.0 so no luck finding this breaking change there either.
The text was updated successfully, but these errors were encountered: