lsergio commented on issue #4639:
URL: https://github.com/apache/camel-k/issues/4639#issuecomment-2743298987
Thanks, @squakez . As I have mentioned in the chat, I'm facing the same
issue with the jsonata and possibly other components, like xslt.
Basically we need the jsonata file to be available at the native binary, and
that requires the resource to be available at build time and some quarkus
configuration to add them to the native image.
I think that adding a new config to the builder trait where we list the
resources to be available at build time sounds a good idea:
```
traits:
builder:
resources:
- "configmap:mycm"
```
As for adding those resources to the native image, we may assume that any
resources on the builder config maps should be included, or may have another
config to indicate which files to include.
Maybe the config map has some files that are required during build time, but
don't need to be available at runtime, while others do.
Something like:
```
traits:
builder:
resources:
- "configmap:mycm" #let´'s assume this cm has entries a.xstl and b.xstl
nativeResouces:
- "a.txt" # but we only need a.txt at runtime
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]