You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "lburgazzoli (via GitHub)" <gi...@apache.org> on 2023/05/08 08:56:05 UTC

[GitHub] [camel-k] lburgazzoli opened a new issue, #4336: Binding from a Strimzi CR is not properly decoded

lburgazzoli opened a new issue, #4336:
URL: https://github.com/apache/camel-k/issues/4336

   I've created the following `KameletBinding` using a pre-built container image that should bridge Kafka and Slack.
   
   ```yaml
   apiVersion: camel.apache.org/v1alpha1
   kind: KameletBinding
   metadata:
     name: kafka-to-slack
     annotations:
       "trait.camel.apache.org/container.image": "quay.io/rhoas/cos-connector-slack:main-65c1e78930846874d2c0414db67bcc60302e9943"
       "trait.camel.apache.org/kamelets.enabled": "false"
       "trait.camel.apache.org/jvm.enabled": "false"
       "trait.camel.apache.org/mount.configs": "[ \"secret:slack\" ]"
   spec:
     source:
       ref:
         kind: Kafka
         apiVersion: kafka.strimzi.io/v1beta2
         name: rhoc-cluster
       properties:
         topic: datagen-out
     sink:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1alpha1
         name: slack-sink
       properties:
         channel: "#demo"
         webhookUrl: "foo/bar"
    ```
    
    However in the resulting integration code, the Kafka ref is translated to Knative
    
    ```yaml
   apiVersion: v1
   data:
     content: |
       - route:
           from:
             steps:
             - to: kamelet:cos-slack-sink/sink
             uri: knative:endpoint/rhoc-cluster?apiVersion=kafka.strimzi.io%2Fv1beta2&kind=Kafka&topic=datagen-out
           id: binding
   kind: ConfigMap
   ```
   
   I would expect this binding to decode the Kafka ref to a kafka endpoint/kamelet in the generated code


-- 
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: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] lburgazzoli commented on issue #4336: Binding from a Strimzi CR is not properly decoded

Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on issue #4336:
URL: https://github.com/apache/camel-k/issues/4336#issuecomment-1538064160

   so it turn out that the strimzi addon [supports only the KafkaTopic CRD](https://github.com/apache/camel-k/blob/10bbd11e5866a930369f02718165eafe265e6ffa/addons/strimzi/strimzi.go#L54C17-L57) and I've tested that it works however, the camel-k operator should not fallback to `knative` if the ref cannot be resolved by any other addon.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez closed issue #4336: Binding from a Strimzi CR is not properly decoded

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez closed issue #4336: Binding from a Strimzi CR is not properly decoded
URL: https://github.com/apache/camel-k/issues/4336


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org