This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push: new e5b6a6bf9 fabric8 extension docs e5b6a6bf9 is described below commit e5b6a6bf9debaf6c94fa2ed8d111f0b27f1cb0e2 Author: Andrea Peruffo <andrea.peruffo1...@gmail.com> AuthorDate: Thu Apr 20 14:25:08 2023 +0100 fabric8 extension docs --- docs/modules/ROOT/partials/apis/camel-k-crds.adoc | 25 ++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/partials/apis/camel-k-crds.adoc b/docs/modules/ROOT/partials/apis/camel-k-crds.adoc index 5a093cd9a..1de342ff3 100644 --- a/docs/modules/ROOT/partials/apis/camel-k-crds.adoc +++ b/docs/modules/ROOT/partials/apis/camel-k-crds.adoc @@ -3,6 +3,29 @@ Package v1 contains API Schema definitions for the camel v1 API group +There is a published https://github.com/fabric8io/kubernetes-client[kubernetes-client] typed API to access those resources from Java. + +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> +---- + +And using it: + +[source,java] +---- +var client = new KubernetesClientBuilder().build(); +var camelCatalogClient = client.resources(CamelCatalog.class); + +camelCatalogClient.list() ... +---- + == Resource Types [#_camel_apache_org_v1_Build] @@ -6010,4 +6033,4 @@ Legacy trait configuration parameters. Deprecated: for backward compatibility. -|=== \ No newline at end of file +|===