matzew opened a new issue, #1785:
URL: https://github.com/apache/camel-kamelets/issues/1785

   Now trying the `aws-s3-source` `Kamelet`, it looks like:
   
   ```yaml
   apiVersion: camel.apache.org/v1
   kind: Pipe
   metadata:
     name: aws-s3-source-pipe
   spec:
     integration:
       dependencies:
       - "camel:cloudevents"
     source:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1
         name: aws-s3-source
       properties:
         bucketNameOrArn: "soomebucket"
         accessKey: "the access key"
         secretKey: "the secret"
       dataTypes:
         out:
           format: aws2-s3:application-cloudevents
     sink:
       dataTypes:
         in:
           format: http:application-cloudevents
       ref:
         kind: Broker
         apiVersion: eventing.knative.dev/v1
         name: kamelet
   ```
   
   However, in the pod for that "aws source" I get the following 
   
   
   ```
   2023-12-07 09:39:30,593 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) 
Failed to start application: org.apache.camel.RuntimeCamelException: 
org.apache.camel.VetoCamelContextStartException: Failure creating route from 
template: aws-s3-source
        at 
org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:66)
        at 
org.apache.camel.support.service.BaseService.doFail(BaseService.java:407)
        at 
org.apache.camel.impl.engine.AbstractCamelContext.doFail(AbstractCamelContext.java:2996)
        at 
org.apache.camel.support.service.BaseService.fail(BaseService.java:336)
        at 
org.apache.camel.impl.engine.AbstractCamelContext.failOnStartup(AbstractCamelContext.java:3949)
        at 
org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2075)
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:105)
        at 
org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2081)
        at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:313)
        at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94)
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:113)
        at 
org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:140)
        at 
org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
        at 
org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
        at 
io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy_0(Unknown
 Source)
        at 
io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy(Unknown
 Source)
        at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
        at io.quarkus.runtime.Application.start(Application.java:101)
        at 
io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at 
io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:61)
        at 
io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:32)
   Caused by: org.apache.camel.VetoCamelContextStartException: Failure creating 
route from template: aws-s3-source
        at 
org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.onContextInitialized(KameletComponent.java:433)
        at 
org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2406)
        at 
org.apache.camel.quarkus.core.FastCamelContext.doInit(FastCamelContext.java:171)
        at 
org.apache.camel.support.service.BaseService.init(BaseService.java:78)
        at 
org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2062)
        ... 23 more
   Caused by: org.apache.camel.component.kamelet.KameletNotFoundException: 
Kamelet with id aws-s3-source not found in locations: 
file:/etc/camel/kamelets/kamelets-bundle-aws-s3-source-pipe-001,classpath:/kamelets
        at 
org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.createRouteForEndpoint(KameletComponent.java:421)
        at 
org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.onContextInitialized(KameletComponent.java:430)
        ... 27 more
   Caused by: java.lang.IllegalArgumentException: Route template aws-s3-source 
the following mandatory parameters must be provided: region
   ```
   
   
   But the `kamelet` is there:
   ```
   k get kamelets.camel.apache.org aws-s3-source       
   NAME            PHASE
   aws-s3-source   Ready
   ```
   
   
   I install Camel-K on Minikube, via 
https://github.com/matzew/eventing-cloud-integration/tree/main/system  
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to