blob: 754f15519d655a0f15f132021d81cb4e5592b94e [file] [log] [blame]
= Environment Trait
// Start of autogenerated code - DO NOT EDIT! (description)
The environment trait is used internally to inject standard environment variables in the integration container,
such as `NAMESPACE`, `POD_NAME` and others.
This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**.
WARNING: The environment 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 environment.[key]=[value] --trait environment.[key2]=[value2] integration.groovy
----
The following configuration options are available:
[cols="2m,1m,5a"]
|===
|Property | Type | Description
| environment.enabled
| bool
| Can be used to enable or disable a trait. All traits share this common property.
| environment.container-meta
| bool
| Enables injection of `NAMESPACE` and `POD_NAME` environment variables (default `true`)
| environment.http-proxy
| bool
| Propagates the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` environment variables (default `true`)
| environment.vars
| []string
| A list of environment variables to be added to the integration container.
The syntax is KEY=VALUE, e.g., `MY_VAR="my value"`.
These take precedence over the previously defined environment variables.
|===
// End of autogenerated code - DO NOT EDIT! (configuration)