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

Kamelet validator prevents @BeanInject usage #1173

Open
christophd opened this issue Nov 22, 2022 · 1 comment
Open

Kamelet validator prevents @BeanInject usage #1173

christophd opened this issue Nov 22, 2022 · 1 comment

Comments

@christophd
Copy link
Contributor

I tried to use @BeanInject in camel-kamelets-utils in order to autowire beans that are defined in Kamelet template section. The Kamelet validation scripts prevents this with parameter %q is declared in kamelet %q but never used

This is because the bean is declared in Kamelet but not used with #bean:{{myBean}} syntax due to @BeanInject.

Is @BeanInject something we want to support? We would need to change the Kamelet validation tool accordingly

@oscerd
Copy link
Contributor

oscerd commented Nov 23, 2022

I don't have strong opininion on this. I would prefer to keep the stuff simple, but relaxing validation for having some more flexibility in relation to beans is fine.

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