-
Notifications
You must be signed in to change notification settings - Fork 71
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
override example template for these action kamelets #866
Comments
This is a description not really complete. What is wrong exactly? |
If I understand correctly, the template we use to render Kamelets documentation is not correct for action kind Kamelets. |
The reported list is just a subset, so only this subset has something wrong, but what is it? Waiting for clarification. |
What is wrong: the auto-generated examples for those Kamelets do not work. |
The examples need additional steps - such as adding a serialize/deserialize step. The way that the template generates examples now, we cannot override the generated ones to provide examples that are correct/useful. |
Now I have a description. |
I am investigating this issue. Looking at the avro-deserialize-action and the corresponding binding example file avro-deserialize-action-binding.yaml It fails with The kamelet binding should be fixed by having a json message in the timer and additional steps to convert string -> json -> avro. I had not run all the other auto generated kamelet biding to see if they work. To fix this, I propose one of the following options:
|
Fix apache#866 * There are some generated kamelet bindings are invalid, the auto generation cannot resolve all the required steps, so there is a need to create it manually * Add a comment marker in kamelet binding examples for the auto generation to skip its creation * The doc generation source the kamelet binding example file when it doesn't auto generate the example * the camel-kamelets directory is hardcoded in kamelets.js as it is assumed this generation mechanism already assumes this directory
Fix apache#866 * There are some generated kamelet bindings are invalid, the auto generation cannot resolve all the required steps, so there is a need to create it manually * Add a comment marker in kamelet binding examples for the auto generation to skip its creation * The doc generation source the kamelet binding example file when it doesn't auto generate the example * the camel-kamelets directory is hardcoded in kamelets.js as it is assumed this generation mechanism already assumes this directory
Fix apache#866 * There are some generated kamelet bindings are invalid, the auto generation cannot resolve all the required steps, so there is a need to create it manually * Add a comment marker in kamelet binding examples for the auto generation to skip its creation * The doc generation source the kamelet binding example file when it doesn't auto generate the example * the camel-kamelets directory is hardcoded in kamelets.js as it is assumed this generation mechanism already assumes this directory
Fix apache#866 * There are some generated kamelet bindings are invalid, the auto generation cannot resolve all the required steps, so there is a need to create it manually * Add a comment marker in kamelet binding examples for the auto generation to skip its creation * The doc generation source the kamelet binding example file when it doesn't auto generate the example * the camel-kamelets directory is hardcoded in kamelets.js as it is assumed this generation mechanism already assumes this directory
Fix #866 * There are some generated kamelet bindings are invalid, the auto generation cannot resolve all the required steps, so there is a need to create it manually * Add a comment marker in kamelet binding examples for the auto generation to skip its creation * The doc generation source the kamelet binding example file when it doesn't auto generate the example * the camel-kamelets directory is hardcoded in kamelets.js as it is assumed this generation mechanism already assumes this directory
By default, the Kamelets template auto generates examples. We discovered that the auto-generated examples for the following Kamelets do not work. (As a workaround, we provided working examples in the Kamelets Reference document.)
avro-deserialize-action-binding.yaml
avro-serialize-action.kamelet.yaml
has-header-filter-action.kamelet.yaml
insert-action.kamelet.yaml
protobuf-deserialize-action.kamelet.yaml
protobuf-deserialize-action.kamelet.yaml
The text was updated successfully, but these errors were encountered: