This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 69856fbfb087efe5bab777a64d70b16269a59fc5
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Wed Sep 15 12:52:31 2021 +0200

    doc(trait): configuration
    
    Ref #2320
---
 docs/modules/ROOT/nav.adoc                   |  1 +
 docs/modules/traits/pages/configuration.adoc | 36 ++++++++++++++++++++++++++++
 resources/traits.yaml                        | 16 +++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 375ad93..620e5cb 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -45,6 +45,7 @@
 ** xref:traits:affinity.adoc[Affinity]
 ** xref:traits:builder.adoc[Builder]
 ** xref:traits:camel.adoc[Camel]
+** xref:traits:configuration.adoc[Configuration]
 ** xref:traits:container.adoc[Container]
 ** xref:traits:cron.adoc[Cron]
 ** xref:traits:dependencies.adoc[Dependencies]
diff --git a/docs/modules/traits/pages/configuration.adoc 
b/docs/modules/traits/pages/configuration.adoc
new file mode 100755
index 0000000..99292ce
--- /dev/null
+++ b/docs/modules/traits/pages/configuration.adoc
@@ -0,0 +1,36 @@
+= Configuration Trait
+
+// Start of autogenerated code - DO NOT EDIT! (description)
+The configuration trait is used to customize the Integration configuration 
such as properties and resources.
+
+
+This trait is available in the following profiles: **Kubernetes, Knative, 
OpenShift**.
+
+WARNING: The configuration trait is a *platform trait*: disabling it may 
compromise the platform functionality.
+
+// End of autogenerated code - DO NOT EDIT! (description)
+// Start of autogenerated code - DO NOT EDIT! (configuration)
+== Configuration
+
+Trait properties can be specified when running any integration with the CLI:
+[source,console]
+----
+$ kamel run --trait configuration.[key]=[value] --trait 
configuration.[key2]=[value2] integration.groovy
+----
+The following configuration options are available:
+
+[cols="2m,1m,5a"]
+|===
+|Property | Type | Description
+
+| configuration.enabled
+| bool
+| Can be used to enable or disable a trait. All traits share this common 
property.
+
+| configuration.properties
+| []string
+| A list of properties to be provided to the Integration runtime
+
+|===
+
+// End of autogenerated code - DO NOT EDIT! (configuration)
diff --git a/resources/traits.yaml b/resources/traits.yaml
index c422f64..6556217 100755
--- a/resources/traits.yaml
+++ b/resources/traits.yaml
@@ -73,6 +73,22 @@ traits:
     type: string
     description: The camel-k-runtime version to use for the integration. It 
overrides
       the default version set in the Integration Platform.
+- name: configuration
+  platform: true
+  profiles:
+  - Kubernetes
+  - Knative
+  - OpenShift
+  description: The configuration trait is used to customize the Integration 
configuration
+    such as properties and resources.
+  properties:
+  - name: enabled
+    type: bool
+    description: Can be used to enable or disable a trait. All traits share 
this common
+      property.
+  - name: properties
+    type: '[]string'
+    description: A list of properties to be provided to the Integration runtime
 - name: container
   platform: true
   profiles:

Reply via email to