= Mount Trait

// Start of autogenerated code - DO NOT EDIT! (description)
The Mount trait can be used to configure volumes mounted on the Integration Pods.


This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**.

WARNING: The mount 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 mount.[key]=[value] --trait mount.[key2]=[value2] integration.groovy
----
The following configuration options are available:

[cols="2m,1m,5a"]
|===
|Property | Type | Description

| mount.enabled
| bool
| Can be used to enable or disable a trait. All traits share this common property.

| mount.configs
| []string
| A list of configuration pointing to configmap/secret.
The configuration are expected to be UTF-8 resources as they are processed by runtime Camel Context and tried to be parsed as property files.
They are also made available on the classpath in order to ease their usage directly from the Route.
Syntax: [configmap\|secret]:name[/key], where name represents the resource name and key optionally represents the resource key to be filtered

| mount.resources
| []string
| A list of resources (text or binary content) pointing to configmap/secret.
The resources are expected to be any resource type (text or binary content).
The destination path can be either a default location or any path specified by the user.
Syntax: [configmap\|secret]:name[/key][@path], where name represents the resource name, key optionally represents the resource key to be filtered and path represents the destination path

| mount.volumes
| []string
| A list of Persistent Volume Claims to be mounted. Syntax: [pvcname:/container/path]

|===

// End of autogenerated code - DO NOT EDIT! (configuration)
