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

How does many optional options design when use camel components in kamelets #467

Closed
wingerx opened this issue Aug 25, 2021 · 4 comments
Closed

Comments

@wingerx
Copy link

wingerx commented Aug 25, 2021

Hey,
Could anyone help me?
I created Kameletbinding for DBZ component by kamelets developer guide.But i want to configure only the required options, and the optional options are filled in as needed in kamelets binding yaml file. There are so many options for DBZ, and it is not conducive to subsequent expansion if all are defined.
There is an additionalProperties option in DBZ components, but I don’t know how to configure it in yaml and make it take effect.

Any ideas?

@wingerx wingerx changed the title How does many options design when use camel components in kamelets How does many optional options design when use camel components in kamelets Aug 25, 2021
@oscerd
Copy link
Contributor

oscerd commented Aug 27, 2021

You need to think to Kamelets as pre-baked actions, so there are no means in having all the possibile options available as parameters in the kamelet.

@wingerx
Copy link
Author

wingerx commented Aug 30, 2021

I'm sorry,i don't understand.
Can you explain this for me please?

@oscerd
Copy link
Contributor

oscerd commented Aug 30, 2021

In camel component you have multiple parameters to tune your route and set everything. A Kamelet needs to define just a subset of the options to perform a pre-defined operation. So in a Kamelet you'll never see all the possible options listed and configurabile, because in terms of Kamelets this is conceptually wrong.

@wingerx
Copy link
Author

wingerx commented Aug 31, 2021

ok, I see.
Thanks a lot. @oscerd

@oscerd oscerd closed this as completed Aug 31, 2021
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

No branches or pull requests

2 participants