-
Notifications
You must be signed in to change notification settings - Fork 350
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
kamelets: source/sink binding #1676
Comments
Can we have something like this instead: apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: twitter-directmessage-source
spec:
properties:
key: value
user: my-user
password: just-provide-it-in-plain-text-for-now
source:
ref:
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
name: twitter-directmessage
sink:
ref:
apiVersion: messaging.knative.dev/v1alpha1
kind: InMemoryChannel
name: twitter (edited after comment) There are multiple reasons:
Wdyt @lburgazzoli ? |
We can but how do you define which secrets/configmaps the source need to mount ? |
Using a |
so I guess this should be named |
A better format: apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: twitter-directmessage-source
spec:
source:
ref:
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
name: twitter-directmessage
properties:
key: value
user: my-user
password: just-provide-it-in-plain-text-for-now
sink:
ref:
apiVersion: messaging.knative.dev/v1alpha1
kind: InMemoryChannel
name: twitter They can be optionally used also in the This removes the ambiguity about what endpoint the properties refer to. |
LGTM, I think |
btw, we can use the syntax:
for sensitive info |
Right! That can be done manually by the user. |
Yes, I'm calling it "Endpoint", as we do in Camel ;) |
To have a generic mechanics to use kamelet to materialize sources and sinks, we should introduce a new resource named
KameletBinding
like:The operator should translate the binding into a real integration as example, for knative sources and sinks it could generate a source like:
The text was updated successfully, but these errors were encountered: