Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
When we compile the flink-kubernetes-operator, we could find the following overlapping classes of fabric8 kubernetes client dependencies. I propose to add a flink-kubernetes-shaded module to fix this in current project. If we are confident enough the shading works well, I will contribute it to the upstream project Flink.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] flink-kubernetes_2.12-1.14.3.jar, kubernetes-model-coordination-5.12.1.jar define 18 overlapping classes:
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseFluentImpl$SpecNestedImpl
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseListFluentImpl$ItemsNestedImpl
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseSpec
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseFluent$SpecNested
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseListFluentImpl
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseSpecBuilder
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseSpecFluent
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseFluentImpl$MetadataNestedImpl
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseFluent
[WARNING] - io.fabric8.kubernetes.api.model.coordination.v1.LeaseListFluent
[WARNING] - 8 more...
[WARNING] flink-kubernetes_2.12-1.14.3.jar, kubernetes-client-5.12.1.jar define 476 overlapping classes:
[WARNING] - io.fabric8.kubernetes.client.internal.CertUtils
[WARNING] - io.fabric8.kubernetes.client.osgi.ManagedKubernetesClient
[WARNING] - io.fabric8.kubernetes.client.CustomResource
[WARNING] - io.fabric8.kubernetes.client.V1beta1ApiextensionAPIGroupDSL
[WARNING] - io.fabric8.kubernetes.client.internal.PatchUtils$SingletonHolder
[WARNING] - io.fabric8.kubernetes.client.VersionInfo$1
[WARNING] - io.fabric8.kubernetes.client.utils.ReplaceValueStream
[WARNING] - io.fabric8.kubernetes.client.dsl.ApiextensionsAPIGroupDSL
[WARNING] - io.fabric8.kubernetes.client.dsl.CreateFromServerGettable
[WARNING] - io.fabric8.kubernetes.client.dsl.Containerable
[WARNING] - 466 more...
Attachments
Issue Links
- links to