-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix #4460 removing the split packages #4464
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'd prefer to see something like VanillaKubernetesClient
instead of KubernetesClientImpl
, but that's something very personal (I hate the Impl
suffix in class names).
@@ -13,11 +13,14 @@ | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
*/ | |||
package io.fabric8.kubernetes.client; | |||
package io.fabric8.kubernetes.client.impl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test class name should probably be renamed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Feel free to use whatever naming you want - I don't have a strong preference. We'll probably want to re-assess the package names as well at some point. We could just have io.fabric8.kubernetes.client.(impl or internal) as the root package, rather than the two impls and two internals that will be there after this pr. |
SonarCloud Quality Gate failed. |
Description
Fix #4460
To support java modules (#4460) and cleaner OSGI support split packages need to be removed. Since we've now had 6.0 / 6.1 releases with the relevant client classes either explicitly or effectively deprecated we should be able to resolve this for splits that were introduced by the client/api refactorings.
kubernetes-client:
openshift-client:
Additionally a still deprecated DefaultKubernetesClient and DefaultOpenShiftClient adapters were added to the -api modules for continued compatibility when not using a builder. The actual implementations have been renamed XXXClientImpl.
I tested against a sample module project and this seemed to be sufficient to address the issue. There may be some more additional changes needed for OSGI - in particular the osgi.export and osgi.private should be reviewed for kubernetes-client and openshift-client @rohanKanojia is this something that you are familiar with?
Type of change
test, version modification, documentation, etc.)
Checklist