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

feat(cmd/bind): error-handler setting #2587

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

squakez
Copy link
Contributor

@squakez squakez commented Aug 23, 2021

With this PR we introduce the possibility to use --error-handler option directly with the kamel bind. There is a simple syntax that will allow the user to chose one of the different error handler available (none, log, dlc, bean, ref). The dlc is using what it is already used for step as it expects the same configuration (ie, a Kamelet).

As an example, we'll be now allowed to execute:

kamel bind my:src my:dst --error-handler dlc:my-kamelet -p error-handler.my-prop=value

Which will turn into a KameletBinding with a dlc error handler and relative property setting.

Closes #2494

Release Note

feat(cmd/bind): error-handler setting

@squakez squakez changed the title Feat/2494 kamel bind error feat(cmd/bind): error-handler setting Aug 23, 2021
@squakez squakez merged commit d039af5 into apache:main Aug 26, 2021
@nicolaferraro nicolaferraro mentioned this pull request Sep 3, 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

Successfully merging this pull request may close these issues.

[CMD] kamel bind --error-handler feature
2 participants