| [[traits]] |
| = Traits |
| |
| Traits are high level named features of Camel K that can be enabled/disabled or configured to customize the |
| behavior of the final integration. |
| |
| Camel K provide sensible defaults for all such traits, taking into account the details of the target platform where |
| the integration is going to run into. However, it's possible for a **expert user** to configure them in |
| order to obtain a different behavior. |
| |
| == Configuration |
| |
| Each trait has a unique ID that can be used to configure it using the command line tool. |
| |
| E.g. in order to disable the creation of a Service for a integration, a user can execute: |
| |
| ``` |
| kamel run --trait service.enabled=false file.groovy |
| ``` |
| |
| The flag `--trait` can be also abbreviated with `-t`. |
| |
| The `enabled` property is available on all traits and can be used to enable/disable them. All traits have their own |
| internal logic to determine if they need to be enabled when the user does not activate them explicitly. |
| |
| Some traits share also a `auto` property that can be used to enable/disable auto-configuration of the trait based on the |
| environment. The auto-configuration mechanism is able to enable/disable the trait when the `enabled` property is not explicitly |
| set by the user and also change the trait configuration. |
| |
| NOTE: Some traits are applicable only to specific platforms (see the "profiles" in the trait description page). |
| |
| A trait may have additional properties that can be configured by the end user. |
| |
| See the trait description pages for more information on a specific trait: |
| |
| // Start of autogenerated code - DO NOT EDIT! (trait-list) |
| * xref:traits/affinity.adoc[Affinity Trait] |
| * xref:traits/builder.adoc[Builder Trait] |
| * xref:traits/camel.adoc[Camel Trait] |
| * xref:traits/classpath.adoc[Classpath Trait] |
| * xref:traits/container.adoc[Container Trait] |
| * xref:traits/debug.adoc[Debug Trait] |
| * xref:traits/dependencies.adoc[Dependencies Trait] |
| * xref:traits/deployer.adoc[Deployer Trait] |
| * xref:traits/deployment.adoc[Deployment Trait] |
| * xref:traits/environment.adoc[Environment Trait] |
| * xref:traits/gc.adoc[Gc Trait] |
| * xref:traits/ingress.adoc[Ingress Trait] |
| * xref:traits/istio.adoc[Istio Trait] |
| * xref:traits/jolokia.adoc[Jolokia Trait] |
| * xref:traits/knative-service.adoc[Knative Service Trait] |
| * xref:traits/knative.adoc[Knative Trait] |
| * xref:traits/owner.adoc[Owner Trait] |
| * xref:traits/platform.adoc[Platform Trait] |
| * xref:traits/probes.adoc[Probes Trait] |
| * xref:traits/prometheus.adoc[Prometheus Trait] |
| * xref:traits/pull-secret.adoc[Pull Secret Trait] |
| * xref:traits/quarkus.adoc[Quarkus Trait] |
| * xref:traits/rest-dsl.adoc[Rest Dsl Trait] |
| * xref:traits/route.adoc[Route Trait] |
| * xref:traits/service.adoc[Service Trait] |
| // End of autogenerated code - DO NOT EDIT! (trait-list) |