Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-25963 FLIP-212: Introduce Flink Kubernetes Operator
  3. FLINK-26476

Introduce flink-kubernetes-shaded to avoid overlapping classes

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              wangyang0918 Yang Wang
              wangyang0918 Yang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: