-
Notifications
You must be signed in to change notification settings - Fork 350
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
Traits to configure the container image and location fo the sources #2232
Comments
/cc @nicolaferraro |
Thinking a little bit about this:
spec:
sources:
- location: "{{env.CAMEL_K_SOURCES}}/routes.yaml"
|
I was thinking we could embed the location in the classpath. I'd assume that without information about the sources, the operator is not in a position to compute the right classpath, so that should be provided as part of the container image. So we may only need to choose a (fixed) relative path for sources. |
This is probably true for kamelets but sources it is a little bit more complex so I think, the location of the sources should always be provided. The operator should then ignore any inspection task and only create the "application.properties" where the sources are configured. Not sure if it makes any sense :) |
This issue has been automatically marked as stale due to 90 days of inactivity. |
I think the first part of the issue is captured by the |
No, we can close the issue |
We should support traits to configure what container image an integration should use to run integrations as well as where as where sources are located.
As example, it would be nice to be able to define a
KameletBinding
like:Where:
KameletBinding
should be executed using the the container image defined by thetrait.camel.apache.org/integration.image
annotation (no build should be performed)trait.camel.apache.org/integration.sources-mode: "embedded"
instruct the operator that any source are embedded in the container image on a specific location, the operator still need to configure them for the runtime to be able to read but does not need to look them up in k8s.Relates to: #2165
The text was updated successfully, but these errors were encountered: