Fabric8 Kubernetes Client 7.6 is now available!
On behalf of the Fabric8
team and everyone who has contributed, I'm happy to announce that the Fabric8 Kubernetes Client 7.6.0 has been
released and is now available from
Maven Central 🎉.
This marks the sixth minor release of the Fabric8 Kubernetes Client 7, bringing new features, bug fixes, and improvements while keeping the breaking changes minimal.
Thanks to all of you who have contributed with issue reports, pull requests, feedback, and spreading the word with blogs, videos, comments, and so on. We really appreciate your help, keep it up!
What's new?
Without further ado, let's have a look at the most significant updates:
- Kubernetes 1.35 support (Timbernetes)
- New Vert.x 5 HTTP client implementation
- OkHttp upgraded to version 5
- 🐛 Many other bug fixes and minor improvements
You can find the full changelog for this version in our GitHub release page.
Kubernetes 1.35 support (Timbernetes)
This release adds support for Kubernetes v1.35 (Timbernetes), ensuring you have access to the latest API resources and CRDs.
Note
Please note that you can still access newer Kubernetes clusters with older versions of the Fabric8 client.
The client provides a GenericKubernetesResources class to interact with resources that are not yet supported by the client. We do recommend to always use the latest version of the client to benefit from the latest features and bug fixes, but it's not mandatory.
New Vert.x 5 HTTP client implementation
A new Vert.x 5 HTTP client implementation has been added with improved async handling and WebSocket separation.
The kubernetes-httpclient-vertx-5 module includes a runtime check for Vert.x 5 classes to provide a clear error message when a Vert.x 4/5 conflict occurs.
The HTTP client factory priority has also been fixed: VertxHttpClientFactory (the default) now has priority -1, while OkHttpClientFactory is restored to priority 0.
Note that the kubernetes-httpclient-vertx (Vert.x 4.x) and kubernetes-httpclient-vertx-5 (Vert.x 5.x) modules are mutually exclusive and must not be included together in your project dependencies.
When using Vert.x 5, exclude the default Vert.x 4 client and add the Vert.x 5 module:
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<exclusions>
<exclusion>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-httpclient-vertx</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-httpclient-vertx-5</artifactId>
</dependency>OkHttp upgraded to version 5
OkHttp has been upgraded from version 4.12.0 to 5.3.2. This update removes internal API usage and fixes deprecated OkHttp 5 calls. While the versions are binary compatible, the major version upgrade might cause side effects in some projects.
Using this release
If your project is based on Maven, you just need to add the Fabric8 Kubernetes Client to your Maven dependencies:
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<version>7.6.0</version>
</dependency>If your project is based on Gradle, you just need to add the Fabric8 Kubernetes Client to your Gradle dependencies:
dependencies {
api "io.fabric8:kubernetes-client:7.6.0"
}Once your project is ready, you can create a new instance of the client to perform operations. In the following code snippet, I show you how to instantiate the client and retrieve a list of Pods:
try (KubernetesClient client = new KubernetesClientBuilder().build()) {
client.pods().list().getItems().forEach(p -> System.out.println(p.getMetadata().getName()));
}How can you help?
If you're interested in helping out and are a first-time contributor, check out the "good first issue" tag in the issue repository. We've tagged extremely easy issues so that you can get started contributing to Open Source.
We're also excited to read articles and posts mentioning our project and sharing the user experience. Giving a star to the project, and spreading the word in general, helps us reach more users and broaden the feedback. Feedback is the only way to improve.
Project Page | Issues | Discussions | Gitter | Stack Overflow

