-
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
[Trait] Configuration refactoring #2320
Comments
I will work on this after #2003 |
Moving the logic previously defined in deployment, cron and knative service into a configuration trait Ref apache#2320
I've analyzed this more deeply. It is possible to think a trait, probably However we have a big limitation when it comes to One possibility would be to get rid of |
Right. Alternatively, the |
Yeah, I thought the same, but we even complicate the process as we need to parse twice. The first time in the |
You're right, but I think Camel K should not concern about it. This should be delegated to the underlying Kubernetes controller, like the Deployment controller, as much as possible. For example, if the user deletes the ConfigMap, the Deployment controller will handle it. For the use case of responding to changes, it's also a vast area with long standing issues like kubernetes/kubernetes#22368. |
Moving the logic previously defined in deployment, cron and knative service into a configuration trait Ref apache#2320
* Camel trait is the most suitable to control how properties are managed * Some refactoring in trait_test.go as the properties configmap is now managed by camel trait Closes apache#2320
* Camel trait is the most suitable to control how properties are managed * Some refactoring in trait_test.go as the properties configmap is now managed by camel trait Closes apache#2320
* Camel trait is the most suitable to control how properties are managed * Some refactoring in trait_test.go as the properties configmap is now managed by camel trait Closes apache#2320
Moving the logic previously defined in deployment, cron and knative service into a configuration trait Ref #2320
The previous commits were relating this issue, but not closing it. |
As commented in #2003, we should introduce a new Configuration
trait
in order to properly encapsulate the logic of the different configurations provided into anIntegration
. This new capability would simplify the configuration of traits as also expressed in #2165.Once developed we can deprecate
.spec.configuration
.I am tracking this as a spin off issue to be worked after finishing #2003, as the latter will aim to remove configurations that may be part of this new trait.
The text was updated successfully, but these errors were encountered: