Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16346

Ability to configure traits with Kamelets

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • Camel-K
    • False
    • False
    • 0
    • 0% 0%
    • Todo
    • Undefined

      Traits are ways to configure a general aspect of an integration, while a Kamelet is just one of the building blocks that compose an integration.
      There's no way for a Kamelet to activate a different behavior in the integration where the Kamelet is used.
       
      That said, I can find multiple cases where a Kamelet may need to activate a trait (and it can't). For example, a timed Kamelet may want to activate the "cron" trait. An openapi based kamelet may need to activate the "openapi" trait.
       
      But this mechanism is not in place (and not so easy to formalize), so traits need to be configured manually on the KameletBinding object.
      It's possible to configure them on the KameletBinding using the spec->integration field, and we were talking about extending it to annotations: https://github.com/apache/camel-k/issues/2165
      We can also think to extend the annotation mechanism also to Kamelets in case we need it.
       
      We should also keep in mind that traits are Camel-K-only elements, while we want Kamelets to run in other camel subprojects as well...

              Unassigned Unassigned
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: