Do you have an update on this?

Am Fr., 6. Okt. 2023 um 16:43 Uhr schrieb Matthias Leinweber <
[email protected]>:

> I already looked into it, the io.fabric8.kubernetes.client package is
> private in the camel-kubernetes bundle i think because of this:
>
>                 <groupId>org.apache.camel</groupId>
>                 <artifactId>camel-package-maven-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <id>generate-configurer</id>
>                         <phase>process-classes</phase>
>                         <goals>
>                             <goal>generate-configurer</goal>
>                         </goals>
>                         <configuration>
>                             <discoverClasses>false</discoverClasses>
>                             <allowBuilderPattern>true</allowBuilderPattern>
>                             <skipDeprecated>true</skipDeprecated>
>
> <classes>io.fabric8.kubernetes.client.ConfigBuilder=io.fabric8.kubernetes.client.ConfigFluentImpl</classes>
>                         </configuration>
>                     </execution>
>                 </executions>
>
> br,
> Matthias
>
>
> Am Fr., 6. Okt. 2023 um 16:05 Uhr schrieb Jean-Baptiste Onofré <
> [email protected]>:
>
>> Hi Matthias,
>>
>> it sounds like a missing import/classloader issue. I will try to
>> reproduce myself and fix.
>>
>> Thanks for the test case,
>> Regards
>> JB
>>
>> On Fri, Oct 6, 2023 at 3:30 PM Matthias Leinweber
>> <[email protected]> wrote:
>> >
>> > Long long time has passed...
>> >
>> >
>> > I just tested camel-3.20.5. with karaf 4.4.3 (3.21.1 was not
>> installable)
>> > and i get a  java.util.concurrent.ExecutionException:
>> java.lang.NoClassDefFoundError:
>> io/fabric8/kubernetes/client/KubernetesClient
>> >
>> >
>> > Steps to reproduce:
>> > download karaf & start
>> > repo-add mvn:org.apache.camel.karaf/apache-camel/3.20.5/xml/feature
>> > feature:install camel-kubernetes camel-blueprint
>> >
>> >
>> > and drop this xml into deploy (kubernetes.master.url =
>> https://kubernetes.default)
>> >
>> >
>> > <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>> > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
>> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> >     xmlns:cm="
>> http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0";
>> xsi:schemaLocation="
>> >          http://www.osgi.org/xmlns/blueprint/v1.0.0
>> https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>> >          http://camel.apache.org/schema/blueprint
>> https://camel.apache.org/schema/blueprint/camel-blueprint.xsd
>> >          http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
>> https://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd";>
>> >
>> >     <cm:property-placeholder persistent-id="test"
>> update-strategy="reload"/>
>> >
>> >
>> >     <camelContext
>> >         xmlns="http://camel.apache.org/schema/blueprint";
>> >         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://camel.apache.org/schema/blueprint
>> https://camel.apache.org/schema/blueprint/camel-blueprint-3.20.5.xsd";>
>> >         <route id="k8s">
>> >             <from uri="direct:k8s"/>
>> >             <to
>> uri="kubernetes-job:///{{kubernetes.master.url}}?operation=createJob"/>
>> >         </route>
>> >
>> >     </camelContext>
>> >
>> > </blueprint>
>> >
>> >
>> > br,
>> > Matthias
>> >
>> >
>> > Am Fr., 11. Aug. 2023 um 13:22 Uhr schrieb Matthias Leinweber <
>> [email protected]>:
>> >>
>> >> HI Jb,
>> >>
>> >> I was sick and on vacation, do you have a link to a running example?
>> Maybe I can see my mistake, directly.
>> >>
>> >> br,
>> >> Matthias
>> >>
>> >> Am So., 16. Juli 2023 um 14:30 Uhr schrieb Matthias Leinweber <
>> [email protected]>:
>> >>>
>> >>> Thanks JB,
>> >>>
>> >>> I will setup a test case in vanilla Karaf tomorrow... Getting leader
>> election working, would be great too.
>> >>>
>> >>>
>> >>> Jean-Baptiste Onofré <[email protected]> schrieb am Sa., 15. Juli
>> 2023, 13:10:
>> >>>>
>> >>>> Hi Matthias
>> >>>>
>> >>>> Using private package, yes I'm using it with Cellar. Can you share
>> the
>> >>>> exception and eventually the test case ? I will reproduce and improve
>> >>>> this.
>> >>>>
>> >>>> Regards
>> >>>> JB
>> >>>>
>> >>>> On Fri, Jul 14, 2023 at 9:20 AM Matthias Leinweber
>> >>>> <[email protected]> wrote:
>> >>>> >
>> >>>> > Hello Karaf User,
>> >>>> >
>> >>>> > I tried to get camel-kubernetes component working in blueprint
>> xml, but unfortunately there are class loader issues with fabric8
>> kubernetes client (Karaf 4.3.3 camel 3.20.5)
>> >>>> >
>> >>>> > Then I tried to get the official client working. And After some
>> real strange behaviour of the gson library a second library needed a
>> package what is not exported.
>> >>>> >
>> >>>> > Does anyone got a (recent) kubernetes client working in Karaf? I
>> could use http and the kubeapi directly but it would be nicer to have a
>> component.
>> >>>> >
>> >>>> > Br
>> >>>> > Matthias
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Matthias Leinweber
>>
>>
>>

-- 

Matthias Leinweber

Telefon: +49 ‪69 50955684‬
Mobil: +49 176 810 24580
E-Mail: [email protected]
Internet: http://www.datatactics.de

datatactics GmbH, Sitz der Gesellschaft: Frankfurt am Main,
Registergericht: Amtsgericht Frankfurt am Main, HRB 121394, Geschäftsführer
Matthias Leinweber

Reply via email to