You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2019/03/13 17:57:36 UTC
[GitHub] [camel-k] lburgazzoli opened a new pull request #554: resources:
add options to configure mount path and key
lburgazzoli opened a new pull request #554: resources: add options to configure mount path and key
URL: https://github.com/apache/camel-k/pull/554
This allows to configure where a resource should be mounted and in case the resource references a config map, the key of the entry (default value `content `).
```yaml
apiVersion: camel.apache.org/v1alpha1
kind: Integration
metadata:
name: hello
spec:
resources:
- contentRef: nexus3
contentKey: nexus3-persistent-template.yaml
mountPath: /etc/camel/resources/n3
name: nexus.yaml
type: data
sources:
- content: |
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://camel.apache.org/schema/spring"
xsi:schemaLocation="
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
<route id="hello">
<from uri="timer:hello?period=3s"/>
<setBody>
<constant>Hello World!!!</constant>
</setBody>
<to uri="log:info"/>
</route>
</routes>
name: hello.xml
```
**NOTE** in case the trait `deployer.container-image` is set to `true` the `mountPath` is relative to the `/deployment` folder
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services