You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/05/04 09:39:02 UTC
[GitHub] [camel-k] lburgazzoli commented on a change in pull request #1861: PodSpecable Integration
lburgazzoli commented on a change in pull request #1861:
URL: https://github.com/apache/camel-k/pull/1861#discussion_r625643467
##########
File path: docs/modules/traits/pages/pod.adoc
##########
@@ -0,0 +1,83 @@
+= Pod Trait
+
+// Start of autogenerated code - DO NOT EDIT! (description)
+ The pod trait allows the customization of the Integration pods.
+ It applies the `PodSpecTemplate` struct contained in the Integration `.spec.podTemplate` field, into the Integration deployment Pods template, using strategic merge patch.
+
+ This can be used to customize the container where Camel routes execute, by using the `integration` container name.
+
+
+This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**.
+
+// End of autogenerated code - DO NOT EDIT! (description)
+== Example
+We have an integration that will read files from defined folder:
+[source,groovy]
+----
+from('file:///var/log')
+ .convertBodyTo(String.class)
+ .setBody().simple('${body}: {{TEST_VARIABLE}} ')
+ .log('${body}')
+
+----
+The content of the folder might be autogenerated by bash script using a sidecar container. The pod template could be defined as follows:
+
+[source,yaml]
+----
+containers:
+ - name: integration
Review comment:
How would this work when you have competing changes to the integration container ?
i.e.
1. what would be the result of `kamel run --env TEST_VARIABLE=abc --pod-template template.yaml` ?
2. what woudl happen if the user sets a custom entry point for the integration container ?
--
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