Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Strimzi Topics in KameletBinding #1686

Closed
nicolaferraro opened this issue Sep 4, 2020 · 2 comments · Fixed by #1745
Closed

Add support for Strimzi Topics in KameletBinding #1686

nicolaferraro opened this issue Sep 4, 2020 · 2 comments · Fixed by #1745
Assignees
Milestone

Comments

@nicolaferraro
Copy link
Member

nicolaferraro commented Sep 4, 2020

PR #1602 introduces KameletBinding, which is a mechanism to bind a Kamelet to a source/sink and works currently with explicit URIs and Knative endpoints.

It would be really cool if also other kind of enpoint could be decoded from Kubernetes object references, such as Strimzi Topics.

The following binding may be used to send data from twitter to a Kafka topic:

apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
  name: twitter-stream-binding
spec:
  source:
    ref:
      apiVersion: camel.apache.org/v1alpha1
      kind: Kamelet
      name: twitter-stream
    properties:
      keyword: Camel K
      secret: ...
  sink:
    ref:
      apiVersion: kafka.strimzi.io/v1beta1
      kind: KafkaTopic
      name: tweets
@nicolaferraro nicolaferraro added this to the post 1.0.0 milestone Sep 4, 2020
@heiko-braun
Copy link

heiko-braun commented Sep 4, 2020

What I don't yet see is where the integration logic (DSL) goes. This is just the binding, and I assume it will tacked onto a Kamelt? Is there docs to learn about more about this comes together at the end?

@nicolaferraro
Copy link
Member Author

What I don't yet see is where the integration logic (DSL) goes. This is just the binding, and I assume it will tacked onto a Kamelt? Is there docs to learn about more about this comes together at the end?

Yes, the "twitter-stream" Kamelet will contain the code that allow getting the tweets (or any other data, from SaaS or enterprise services) into a generic sink. The sink here is strimzi, but the same Kamelet can also sink into a Knative channel by creating another binding.

I'm currently writing a "Kamelets" section for the Camel K documentation where I explain the mechanism.

@nicolaferraro nicolaferraro modified the milestones: 1.3.0, 1.2.0 Oct 2, 2020
@nicolaferraro nicolaferraro self-assigned this Oct 2, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Oct 6, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Oct 6, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Oct 6, 2020
nicolaferraro added a commit that referenced this issue Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants