Re: Camel kubernetes

2023-10-18 Thread Matthias Leinweber
Do you have an update on this?

Am Fr., 6. Okt. 2023 um 16:43 Uhr schrieb Matthias Leinweber <
m.leinwe...@datatactics.de>:

> I already looked into it, the io.fabric8.kubernetes.client package is
> private in the camel-kubernetes bundle i think because of this:
>
> org.apache.camel
> camel-package-maven-plugin
> 
> 
> generate-configurer
> process-classes
> 
> generate-configurer
> 
> 
> false
> true
> true
>
> io.fabric8.kubernetes.client.ConfigBuilder=io.fabric8.kubernetes.client.ConfigFluentImpl
> 
> 
> 
>
> br,
> Matthias
>
>
> Am Fr., 6. Okt. 2023 um 16:05 Uhr schrieb Jean-Baptiste Onofré <
> j...@nanthrax.net>:
>
>> 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
>>  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)
>> >
>> >
>> > 
>> > 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;>
>> >
>> > > update-strategy="reload"/>
>> >
>> >
>> > > > 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;>
>> > 
>> > 
>> > > uri="kubernetes-job:///{{kubernetes.master.url}}?operation=createJob"/>
>> > 
>> >
>> > 
>> >
>> > 
>> >
>> >
>> > br,
>> > Matthias
>> >
>> >
>> > Am Fr., 11. Aug. 2023 um 13:22 Uhr schrieb Matthias Leinweber <
>> m.leinwe...@datatactics.de>:
>> >>
>> >> 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 <
>> m.leinwe...@datatactics.de>:
>> >>>
>> >>> Thanks JB,
>> >>>
>> >>> I will setup a test case in vanilla Karaf tomorrow... Getting leader
>> election working, would be great too.
>> >>>
>> >>>
>> >>> Jean-Baptiste Onofré  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
>>   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: m.leinwe...@datatactics.de
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


Re: Camel kubernetes

2023-10-06 Thread Matthias Leinweber
I already looked into it, the io.fabric8.kubernetes.client package is
private in the camel-kubernetes bundle i think because of this:

org.apache.camel
camel-package-maven-plugin


generate-configurer
process-classes

generate-configurer


false
true
true

io.fabric8.kubernetes.client.ConfigBuilder=io.fabric8.kubernetes.client.ConfigFluentImpl




br,
Matthias


Am Fr., 6. Okt. 2023 um 16:05 Uhr schrieb Jean-Baptiste Onofré <
j...@nanthrax.net>:

> 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
>  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)
> >
> >
> > 
> > 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;>
> >
> >  update-strategy="reload"/>
> >
> >
> >  > 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;>
> > 
> > 
> >  uri="kubernetes-job:///{{kubernetes.master.url}}?operation=createJob"/>
> > 
> >
> > 
> >
> > 
> >
> >
> > br,
> > Matthias
> >
> >
> > Am Fr., 11. Aug. 2023 um 13:22 Uhr schrieb Matthias Leinweber <
> m.leinwe...@datatactics.de>:
> >>
> >> 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 <
> m.leinwe...@datatactics.de>:
> >>>
> >>> Thanks JB,
> >>>
> >>> I will setup a test case in vanilla Karaf tomorrow... Getting leader
> election working, would be great too.
> >>>
> >>>
> >>> Jean-Baptiste Onofré  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
>   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
>
>
>


Re: Camel kubernetes

2023-10-06 Thread Jean-Baptiste Onofré
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
 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)
>
>
> 
> 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;>
>
> 
>
>
>  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;>
> 
> 
>  uri="kubernetes-job:///{{kubernetes.master.url}}?operation=createJob"/>
> 
>
> 
>
> 
>
>
> br,
> Matthias
>
>
> Am Fr., 11. Aug. 2023 um 13:22 Uhr schrieb Matthias Leinweber 
> :
>>
>> 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 
>> :
>>>
>>> Thanks JB,
>>>
>>> I will setup a test case in vanilla Karaf tomorrow... Getting leader 
>>> election working, would be great too.
>>>
>>>
>>> Jean-Baptiste Onofré  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
  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
>>
>> Telefon: +49 ‪69 50955684‬
>> Mobil: +49 176 810 24580
>> E-Mail: m.leinwe...@datatactics.de
>> 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
>
>
>
> --
>
> Matthias Leinweber
>
> Telefon: +49 ‪69 50955684‬
> Mobil: +49 176 810 24580
> E-Mail: m.leinwe...@datatactics.de
> 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


Re: Camel kubernetes

2023-10-06 Thread Matthias Leinweber
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)



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;>




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;>










br,
Matthias


Am Fr., 11. Aug. 2023 um 13:22 Uhr schrieb Matthias Leinweber <
m.leinwe...@datatactics.de>:

> 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 <
> m.leinwe...@datatactics.de>:
>
>> Thanks JB,
>>
>> I will setup a test case in vanilla Karaf tomorrow... Getting leader
>> election working, would be great too.
>>
>>
>> Jean-Baptiste Onofré  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
>>>  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
>
> Telefon: +49 ‪69 50955684‬
> Mobil: +49 176 810 24580
> E-Mail: m.leinwe...@datatactics.de
> 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
>


-- 

Matthias Leinweber

Telefon: +49 ‪69 50955684‬
Mobil: +49 176 810 24580
E-Mail: m.leinwe...@datatactics.de
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


Re: Camel kubernetes

2023-08-11 Thread Matthias Leinweber
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 <
m.leinwe...@datatactics.de>:

> Thanks JB,
>
> I will setup a test case in vanilla Karaf tomorrow... Getting leader
> election working, would be great too.
>
>
> Jean-Baptiste Onofré  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
>>  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

Telefon: +49 ‪69 50955684‬
Mobil: +49 176 810 24580
E-Mail: m.leinwe...@datatactics.de
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


Re: Camel kubernetes

2023-07-16 Thread Matthias Leinweber
Thanks JB,

I will setup a test case in vanilla Karaf tomorrow... Getting leader
election working, would be great too.


Jean-Baptiste Onofré  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
>  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
>


Re: Camel kubernetes

2023-07-15 Thread Jean-Baptiste Onofré
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
 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