forked from apache/camel-k
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes apache#4262
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
= Java API | ||
|
||
If you want to integrate the Kubernetes API in your software, we support a https://github.com/fabric8io/kubernetes-client[kubernetes-client] typed API to access Camel K/Kamelets resources from Java programming language. This autogenerated project is released with any release of Camel K, so, the version you're willing to use is aligned with the one of the operator released. | ||
|
||
Importing the dependency in Maven projects looks like: | ||
|
||
[source,xml] | ||
---- | ||
<dependency> | ||
<groupId>org.apache.camel.k</groupId> | ||
<artifactId>camel-k-crds</artifactId> | ||
<version>${version}</version> | ||
</dependency> | ||
---- | ||
|
||
At this stage you can easily use them such in the following example: | ||
|
||
[source,java] | ||
---- | ||
var client = new KubernetesClientBuilder().build(); | ||
var camelCatalogClient = client.resources(CamelCatalog.class); | ||
camelCatalogClient.list() ... | ||
---- |