spring-cloud-kubernetes icon indicating copy to clipboard operation
spring-cloud-kubernetes copied to clipboard

Should we replace fabric8 with https://github.com/kubernetes-client/java?

Open spencergibb opened this issue 5 years ago • 8 comments

spencergibb avatar Oct 22 '19 17:10 spencergibb

Even though I am no longer actively involved with the fabric8 kubernetes-client, It's still my little baby, so I got to ask why?

iocanel avatar Oct 22 '19 17:10 iocanel

More of a question really.

spencergibb avatar Oct 22 '19 17:10 spencergibb

@iocanel can you give a few sentences to the advantages of the fabric8 one over the official client?

spencergibb avatar Oct 22 '19 17:10 spencergibb

why go fabric8

From my point of view the main advantage of the fabric8 kubernetes-client is the DSL which makes it much easier to use.

In additon to the DSL, it offers a mocking framework for the api server, which makes it really easy to write integration tests.

Last but not least, it does provide extensions for things like:

  • knative (internal)
  • tekton (internal)
  • service catalog (internal)
  • istio (external: snowdrop/istio-java-pi).

--

why go official

The official client uses a more automated approach, when it comes to generating the model. So, it does cover exotic resources, that in the fabric8 land are included upon request.

Even though the fabric8 client is IMHO way more user friendly, there are some edge cases (e.g. handling of CRDs) that used to simpler in the official client.

iocanel avatar Oct 23 '19 11:10 iocanel

I think for now we will leave it as is

ryanjbaxter avatar Apr 01 '20 14:04 ryanjbaxter

@ryanjbaxter I think we should offer optional support for the official client using auto configuration. The official client is actively developed and they are working on Spring support [1]

1: https://github.com/kubernetes-client/java/tree/master/spring

ojhughes avatar Apr 09 '20 11:04 ojhughes

Awesome thanks!

ryanjbaxter avatar Apr 09 '20 12:04 ryanjbaxter

Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.

spring-projects-issues avatar Apr 22 '20 17:04 spring-projects-issues