-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Package io.kubernetes.client
is split between client-java
and client-java-api
#737
Comments
If we packaged I admit I don't fully understand the details of OSGi.... |
i think @azzazzel is correct. but we have to value backward-compatibility over the class structure currently, the overlapping classes happen to the most critical paths in this project. (compatibility always ranks #1 for SDK library). we can probably start by copying those to a new package and deprecate the old classes for 3-ish releases. @brendandburns wdyt? |
@brendanburns I'm not sure what you mean by "If we packaged @yue9944882 you are right. Fixing this the proper way would mean backward incompatible changes. I am now trying to regenerate the code with |
fwiw, we don't guarantee non-breaking major version updates (as evidenced by the recent break between So I think that it's ok to make this change as part of the |
i think we can rename the package by the effort of #595. the pull is going to break compatibility anyway.. i can probably take over the pull if it keeps inactive for 2 weeks.. |
+1, not guaranteed but it's better if we do as best as can, isnit |
I guess the best thing to do is to change the package for the generated code. I used |
@brendandburns #709 is taking off. how do you think about rename the package path for the generated codes in that pull together? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The package
io.kubernetes.client
is split betweenclient-java
andclient-java-api
modules.This makes it impossible to use the kubernetes java client in any OSGi environment. For example
ApiClient client = Config.defaultClient();
throwsjava.lang.NoClassDefFoundError: io/kubernetes/client/ApiClient
as the packageio.kubernetes.client
is wired fromclient-java
module and not fromclient-java-api
module and thus it does not containio.kubernetes.client.ApiClient
class.This also will make it impossible to convert the jars into JMPS (Jigsaw) modules as it explicitly forbids split packages.
The text was updated successfully, but these errors were encountered: