Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    pjcubero
    @pjcubero
    image.png
    Aleksander Slominski
    @aslom
    where i can find description what Camel-K operator is doing? Can I build the latest version of it and/or just install from CLI?
    3 replies
    Aleksander Slominski
    @aslom

    running operator directly from github repo clone with go run cmd/manager/main.go operator after go run cmd/kamel/main.go install --force --registry us.icr.io --organization aslom --registry-auth-username aslom --registry-auth-password ... and when executing go run cmd/kamel/main.go run --dev HelloCamelK.java

    {"level":"info","ts":1597967452.99237,"logger":"camel-k.maven","msg":"executing: mvn --batch-mode --settings /var/folders/tw/q5ywbn910mg4qpdbrsrfhlkc0000gn/T/builder-721343901/maven/settings.xml org.apache.camel.k:camel-k-maven-plugin:1.5.1-SNAPSHOT:generate-dependency-list","timeout":"3m45s"}
    {"level":"info","ts":1597967453.343324,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"alek-camel2","request-name":"kit-bsvgiemg10l9v30jo8qg"}
    {"level":"info","ts":1597967453.34348,"logger":"camel-k.controller.build","msg":"Invoking action error-recovery","request-namespace":"alek-camel2","request-name":"kit-bsvgiemg10l9v30jo8qg","api-version":"camel.apache.org/v1","kind":"Build","ns":"alek-camel2","name":"kit-bsvgiemg10l9v30jo8qg"}
    [INFO] Scanning for projects...
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [ERROR] Non-resolvable import POM: Could not find artifact org.apache.camel.k:camel-k-runtime-bom:pom:1.5.1-SNAPSHOT @ line 19, column 19
    [ERROR] 'dependencies.dependency.version' for org.apache.camel.k:camel-k-loader-java:jar is missing. @ line 37, column 17
    [ERROR] 'dependencies.dependency.version' for org.apache.camel.k:camel-k-runtime-main:jar is missing. @ line 41, column 17
     @
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR]   The project org.apache.camel.k.integration:camel-k-integration:1.1.0-SNAPSHOT (/private/var/folders/tw/q5ywbn910mg4qpdbrsrfhlkc0000gn/T/builder-721343901/maven/pom.xml) has 3 errors
    [ERROR]     Non-resolvable import POM: Could not find artifact org.apache.camel.k:camel-k-runtime-bom:pom:1.5.1-SNAPSHOT @ line 19, column 19 -> [Help 2]
    [ERROR]     'dependencies.dependency.version' for org.apache.camel.k:camel-k-loader-java:jar is missing. @ line 37, column 17
    [ERROR]     'dependencies.dependency.version' for org.apache.camel.k:camel-k-runtime-main:jar is missing. @ line 41, column 17
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

    how can i fix it? how to debug it?

    5 replies
    pjcubero
    @pjcubero
    Can you explain me if there is some way to extract the evaluate expression, in java, from one camel integration, to one bean, like the same way that I'm extracting processor methods to one processor bean? Do you understand my doubt?
    pjcubero
    @pjcubero

    Can you explain me if there is some way to extract the evaluate expression, in java, from one camel integration, to one bean, like the same way that I'm extracting processor methods to one processor bean? Do you understand my doubt?

    Something like this: .setProperty("field", new Expression() {
    @Override
    public String evaluate(Exchange exchange, Class type) { This expresion to extract from the integration and locate in one java file.

    pjcubero
    @pjcubero
    How can I assign to one property, the result of one method of one bean? .setProperty("property", bean("bean", "method"))
    3 replies
    Martin Nigbur
    @anerathil
    Hey, got a question regarding Knative integration:
    Is there a possibility to tell camel to get events from a channel in another namespace? like 'from("knative:channel/namespaceb.abc")'?
    Or can i do this via a specific configuration for my KafkaChannel in namespacea?
    Thx :)
    5 replies
    Aleksander Slominski
    @aslom
    when i run go run cmd/kamel/main.go run --dev HelloCamelK.java it build OK but the image created is notusing docker registe passed in go run cmd/kamel/main.go install --force --registry docker.io --organization aslom --registry-auth-username aslom --registry-auth-password xxxxxxxxx --maven-repository http://repository.apache.org/content/groups/snapshots-group@id\=apache@snapshots@noreleases
    Do I need to something in kamel operator to tell it what registry to use to push image? To use docker.io instead of image-registry.openshift-image-registry.svc:5000?
    k get po
    NAME                                       READY   STATUS                 RESTARTS   AGE
    camel-k-kit-bsvthcug10l9ci82jgi0-1-build   0/1     Completed              0          2m20s
    hello-camel-k-857bb7dd8-rw7dv              0/1     ImagePullBackOff       0          88s
    
    k describe hello-camel-k-857bb7dd8-rw7dv
    Name:         hello-camel-k-857bb7dd8-rw7dv
    Namespace:    alek-camel2
    Priority:     0
    Node:         10.74.24.42/10.74.24.42
    Start Time:   Fri, 21 Aug 2020 10:23:48 -0400
    Labels:       camel.apache.org/integration=hello-camel-k
                  pod-template-hash=857bb7dd8
    Annotations:  cni.projectcalico.org/podIP: 172.30.95.232/32
                  cni.projectcalico.org/podIPs: 172.30.95.232/32
                  k8s.v1.cni.cncf.io/networks-status:
                    [{
                        "name": "k8s-pod-network",
                        "ips": [
                            "172.30.95.232"
                        ],
                        "dns": {}
                    }]
                  openshift.io/scc: restricted
    Status:       Pending
    IP:           172.30.95.232
    IPs:
      IP:           172.30.95.232
    Controlled By:  ReplicaSet/hello-camel-k-857bb7dd8
    Containers:
      integration:
        Container ID:
        Image:         image-registry.openshift-image-registry.svc:5000/alek-camel2/camel-k-kit-bsvthcug10l9ci82jgi0@sha256:e2d4a21d000cd4c19f5fd837a874a9d6749117131f61d0c84ae623e4c10574e1
        Image ID:
        Port:          <none>
        Host Port:     <none>
        Command:
          /bin/sh
          -c
        Args:
          echo exec java -cp ./resources:/etc/camel/resources:/etc/camel/sources/i-source-000:dependencies/org.apache.camel.camel-api-3.4.2.jar:dependencies/org.apache.camel.camel-base-3.4....-
    ....
    Events:
      Type     Reason     Age                 From                  Message
      ----     ------     ----                ----                  -------
      Normal   Scheduled  <unknown>           default-scheduler     Successfully assigned alek-camel2/hello-camel-k-857bb7dd8-rw7dv to 10.74.24.42
      Normal   BackOff    44s (x6 over 2m)    kubelet, 10.74.24.42  Back-off pulling image "image-registry.openshift-image-registry.svc:5000/alek-camel2/camel-k-kit-bsvthcug10l9ci82jgi0@sha256:e2d4a21d000cd4c19f5fd837a874a9d6749117131f61d0c84ae623e4c10574e1"
      Normal   Pulling    32s (x4 over 2m1s)  kubelet, 10.74.24.42  Pulling image "image-registry.openshift-image-registry.svc:5000/alek-camel2/camel-k-kit-bsvthcug10l9ci82jgi0@sha256:e2d4a21d000cd4c19f5fd837a874a9d6749117131f61d0c84ae623e4c10574e1"
      Warning  Failed     32s (x4 over 2m1s)  kubelet, 10.74.24.42  Failed to pull image "image-registry.openshift-image-registry.svc:5000/alek-camel2/camel-k-kit-bsvthcug10l9ci82jgi0@sha256:e2d4a21d000cd4c19f5fd837a874a9d6749117131f61d0c84ae623e4c10574e1": rpc error: code = Unknown desc = Error reading manifest sha256:e2d4a21d000cd4c19f5fd837a874a9d6749117131f61d0c84ae623e4c10574e1 in image-registry.openshift-image-registry.svc:5000/alek-camel2/camel-k-kit-bsvthcug10l9ci82jgi0: unauthorized: authentication required
      Warning  Failed     32s (x4 over 2m1s)  kubelet, 10.74.24.42  Error: ErrImagePull
      Warning  Failed     21s (x7 over 2m)    kubelet, 10.74.24.42  Error: ImagePullBackOff
    15 replies
    Arthur De Magalhaes
    @arthurdm
    I would like to wrap a Camel integration written in Java with a CamelSource. Is that possible? I can only find examples where the integration is using YAML DSL.
    3 replies
    Andrew Mak
    @makandre_gitlab
    Hi, I'm trying to do something very similar to this (I want to register a uuid generator bean and use it in yaml). But I'm not using kamel run directly since I'm defining my integration in a CamelSource yaml. I wonder if this can be done?
    3 replies
    pjcubero
    @pjcubero
    Hi, I try to expose one kamel integration, deployed in local minikube, to outside, I want to send requests from Postman, my problem is that I have to expose the deployment, and the deployment is very unstable, I mean, it's deployed once, but 10 seconds later this deployment is not active and kubernetes creates another one, then my service exposed is not working, how can I solve that?
    pjcubero
    @pjcubero
    Hi, anyone knows how to avoid that kamel k integration restarts every X seconds without any modification?
    2 replies
    Andrew Mak
    @makandre_gitlab
    When I'm pushing data to a knative:channel, the message is transformed into a CloudEvent (ce_ headers generated) which is nice. But I can't seem to add any extra headers (I'm using set-header). Is there some special way to set extension headers?
    29 replies
    Aleksander Slominski
    @aslom

    Is there any way I can disable go run cmd/kamel/main.go install from creating camel-k-operator deployment? i do not have any operator installed instead I run with go run cmd/manager/main.go operator

    k get  deployment camel-k-operator
    NAME               READY   UP-TO-DATE   AVAILABLE   AGE
    camel-k-operator   0/1     1            0           11m
    
    k get po
    NAME                                       READY   STATUS             RESTARTS   AGE
    camel-k-kit-bt3dh9eg10lbubv72g70-1-build   0/1     Completed          0          18m
    camel-k-kit-bt3dk96g10lbubv72g80-1-build   0/1     Completed          0          10m
    camel-k-kit-bt3dm0ug10lchn4bpkg0-1-build   0/1     Completed          0          8m41s
    camel-k-operator-74b894d899-l7w8l          0/1     ImagePullBackOff   0          11m

    Everything seems ot work fine after I delete that deployment - it was failign as it uses snapshot image:

    k get deployment camel-k-operator -o yaml
    ...
            image: docker.io/apache/camel-k:1.1.0-SNAPSHOT
            imagePullPolicy: IfNotPresent
            name: camel-k-operator
    ...

    The only config I am doing is with go run cmd/kamel/main.go install --force --maven-repository http://repository.apache.org/content/groups/snapshots-group@id\=apache@snapshots@noreleases --olm=false and I verified it recreated camel-k-operator deployment

    3 replies
    Aleksander Slominski
    @aslom

    BTW: I was not able to change docker registry used with install - it seems to be ignored in OCP 4.4 and the registry used is image-registry.openshift-image-registry.svc:5000

    I can see that there is lot of docker related secrets but I can not find form operator log or builder which secret it uses and why

    k get secret
    NAME                               TYPE                                  DATA   AGE
    builder-dockercfg-vgdrc            kubernetes.io/dockercfg               1      32m
    builder-token-45vcd                kubernetes.io/service-account-token   4      32m
    builder-token-dsnn7                kubernetes.io/service-account-token   4      32m
    camel-k-operator-dockercfg-6txk4   kubernetes.io/dockercfg               1      3m49s
    camel-k-operator-dockercfg-dgb2n   kubernetes.io/dockercfg               1      20m
    camel-k-operator-token-jn72r       kubernetes.io/service-account-token   4      3m49s
    camel-k-operator-token-q9kxq       kubernetes.io/service-account-token   4      20m
    camel-k-operator-token-tzmvj       kubernetes.io/service-account-token   4      20m
    camel-k-operator-token-xcl2p       kubernetes.io/service-account-token   4      3m49s
    default-dockercfg-kh8ts            kubernetes.io/dockercfg               1      32m
    default-token-lvbzr                kubernetes.io/service-account-token   4      32m
    default-token-v8mk6                kubernetes.io/service-account-token   4      32m
    deployer-dockercfg-8fdsr           kubernetes.io/dockercfg               1      32m
    deployer-token-6x6ds               kubernetes.io/service-account-token   4      32m
    deployer-token-mxsbb               kubernetes.io/service-account-token   4      32m
    istio.builder                      istio.io/key-and-cert                 3      32m
    istio.camel-k-operator             istio.io/key-and-cert                 3      20m
    istio.default                      istio.io/key-and-cert                 3      32m
    istio.deployer                     istio.io/key-and-cert                 3      32m
    2 replies
    Rahul Kiran Gaddam
    @rahgadda
    Does quarkus have any framework like OData to support RestAPI? I am looking for a project similar to Odata that is pure rest and not alternatives like GraphQL
    1 reply
    Pedro Freitas
    @pdefreitas
    Hello! I'm using Camel K with Knative and I'm wondering when you use CamelSource kind, injecting a sink it overrides knative trait specified configuration section. Can anyone share me an example of how can I do it or is this expected behavior?
    Pedro Freitas
    @pdefreitas
    I am trying to do something fun with Jetty Websockets and it seems like knative is autoloading vert.x http by detecting something on my CamelSource integration, that is why I'm trying to get in handle of auto value of knative trait:
    RuntimeSupport - Found customizer org.apache.camel.k.http.PlatformHttpServiceContextCustomizer@3241713e with id platform-http from service definition
    Luca Burgazzoli
    @lburgazzoli
    @pdefreitas I think I understand what you’re trying to achieve but would be nice if you can open an issue with some description of the use case and some code can help to better understand and advise
    pjcubero
    @pjcubero
    I have seen that there is a new version of knative, 0.17, in this version is solved the issue with subscriptions?
    pjcubero
    @pjcubero

    I have seen that there is a new version of knative, 0.17, in this version is solved the issue with subscriptions?

    I see that still there is the error... Cannot reconcile Integration creacion-pacientes: error executing post actions: error during replace resource: could not create or replace resource channel-a28-creacion-pacientes: no matches for kind "Subscription" in version "messaging.knative.dev/v1alpha1". do you know when will be solved?

    Luca Burgazzoli
    @lburgazzoli
    @pjcubero see apache/camel-k#1636
    pjcubero
    @pjcubero

    @pjcubero see apache/camel-k#1636

    But, if I remove the suscription and I add to("knative:channel/channel-xx"), this not working. Which has been the solution implemented?

    Luca Burgazzoli
    @lburgazzoli
    I don't understand what you are asking now.
    Your question was when it will be solved, and the answer is that is has been solved and the fix will be available in the next patch release 1.1.1
    Andrea Cosentino
    @oscerd
    the fix is not released yet.
    pjcubero
    @pjcubero

    the fix is not released yet.

    Ok, the fix is not released, ok, then will be solved in knative 1.1.1?

    Luca Burgazzoli
    @lburgazzoli
    as per the issue, yes the fix will be present in the camel-k v1.1.1
    pjcubero
    @pjcubero

    as per the issue, yes the fix will be present in the camel-k v1.1.1

    Ok, clear now... sorry by my confussion...

    Andrew Mak
    @makandre_gitlab
    What is the proper way to specify the number of replicas when running an integration with kamel run?
    4 replies
    Martin Nigbur
    @anerathil

    Hey guys, got a question regarding camel-k 1.1.0 and knative 0.17.
    I deployed a KafkaChannel:

      values:
      - resources:
        - apiVersion: messaging.knative.dev/v1beta1
          kind: KafkaChannel
          metadata:
            name: events
            namespace: data-platform-gdelt-system
            annotations:
              eventing.knative.dev/scope: namespace
          spec:
            numPartitions: 3
            replicationFactor: 1

    ... as well as a simple integration:

      from("timer:start?period=1000")
        .setBody(constant("test"))
        .process(exchange -> {
          final var inboundMessage = exchange.getIn();
          final var message = exchange.getMessage();
    
          /*
          ...
          */
    
          message.getHeaders().clear();
    
          message.setHeader("CE-ID", "eventID");
          message.setHeader("CE-Source", "/2ac27a78-8b0d-4633-b1c7-8182d2df02f8/data-platform-data-system/gdelt");
          message.setHeader("CE-SpecVersion", "1.0");
          message.setHeader("CE-Type", "com.company.ResourceRequested");
          message.setHeader("CE-Time", "eventGenerationTimestamp");
          message.setHeader("CE-Subject", "requestIRI");
          message.setHeader("CE-DataContentType", "application/ld+json");
          message.setHeader("CE-System", "gdelt2");
    
        })
      .to("knative:channel/events");

    Result is: The integration is throwing 404's all the time:
    org.apache.camel.CamelException: HTTP operation failed invoking http://events-kn-channel.data-platform-gdelt-system.svc.cluster.local:80/ with statusCode: 404, statusMessage: Not Found

    Also the kafka-ch-dispatcher is throwing errors:
    E0901 13:31:48.392144 1 leaderelection.go:331] error retrieving resource lock knative-eventing/kafkachannel-dispatcher.knative.dev-eventing-contrib-kafka-channel-pkg-reconciler-dispatcher.reconciler.00-of-01: leases.coordination.k8s.io "kafkachannel-dispatcher.knative .dev-eventing-contrib-kafka-channel-pkg-reconciler-dispatcher.reconciler.00-of-01" is forbidden: User "system:serviceaccount:data-platform-gdelt-system:kafka-ch-dispatcher" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "knative-eventing"

    As i'am not 100% familiar with K8s i'm not totally clear about how to solve that. Is this related to knative 0.17?
    Would be nice if you guys could help me :)

    8 replies
    Corey
    @c1505
    How do we go about troubleshooting an integration when no pods spin up ? I am trying to get anything to work with the jira component and all I get is that there is an error when I look using kamel get or kamel describe integration.
    Luca Burgazzoli
    @lburgazzoli
    do you mean you don't have any pod running because it fails or no pods are created at all ?
    if no pods, then you'd need to check the logs of the operator
    Corey
    @c1505
    no pods are created at all. thanks . checked the operator and it looks like there is a dependency resolution problem.
    [ERROR] Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.1.0: The following artifacts could not be resolved: com.atlassian.jira:jira-rest-java-client-api:jar:5.1.6, com.atlassian.jira:jira-rest-java-client-core:jar:5.1.6: Failure to find com.atlassian.jira:jira-rest-java-client-api:jar:5.1.6 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
    Luca Burgazzoli
    @lburgazzoli
    if you are using jira, it may be required to add an additional repo I think
    because the library used by the component is hosted on the atalassian maven repo
    Corey
    @c1505
    thanks. Is there somewhere in the docs that I should have seen that or a way that I would know without asking the question ? Just trying to figure out how to do things as I look at other integrations too. I am looking at this component doc https://camel.apache.org/components/latest/jira-component.html .
    Luca Burgazzoli
    @lburgazzoli
    mh, we should probably add a note to the doc
    Can you confirm that by adding the atlassian repo it does work ? https://github.com/apache/camel/blob/259ad4f098438588ee2d265a9db20d539f326b75/pom.xml#L151-L161
    Corey
    @c1505
    How do I do that? I see that I can specify dependencies when running the integration. Unsure how to add a different source with this.
    you can add a list of repositories you want to include upon installation or by editing the config map that holds the maven settings
    Andrew Mak
    @makandre_gitlab
    Hi, when I have an integration consuming from a knative channel, and there's multiple pods of that integration, what's the expected behaviour? Can they get messages in round robin fashion? Right now it seems one pod always get all the messages
    1 reply
    pjcubero
    @pjcubero
    Hi, I have some integrations in camel-k, over minikube, one question, I have deployed also ISTIO, is there any way to see the ISTIO dashboard?
    4 replies
    Martin Nigbur
    @anerathil
    Hey, is there already a release date for 1.1.1? :)
    pjcubero
    @pjcubero
    Hi, I have some questions about Minikube, do you know if there is some room about this matter?
    Luca Burgazzoli
    @lburgazzoli
    @pjcubero https://minikube.sigs.k8s.io/docs/ there's a dedicated channel on the official kubernetes slack
    pjcubero
    @pjcubero

    @pjcubero https://minikube.sigs.k8s.io/docs/ there's a dedicated channel on the official kubernetes slack

    I have found a google group, is this what you tell me?

    Luca Burgazzoli
    @lburgazzoli
    there's both a google group and a slack channel, see https://minikube.sigs.k8s.io/community/