hernanDatgDev opened a new pull request, #5709:
URL: https://github.com/apache/camel-k/pull/5709

   <!-- Description -->
   Handles: https://github.com/apache/camel-k/issues/5654
   
   Currently there is no way to add an emptyDir volume without using a pod 
template. This is useful but using the pod template will override any volumes 
mounted when using the mount trait e.g. configmaps, secrets.
   This PR adds the trait field `mount.empty-dirs` which uses the same syntax 
as the existing `mount.volumes` trait field. To add an emptyDir volume use:
   `trait=mount.empty-dirs=my-empty-dir:/var/test`
   📓 Note that the trait field `empty-dirs` will be translated to `emptyDirs` 
in the integration yaml (if using helm or working with yaml directly)
   
   The example above will add the following to your integration yaml
   ```yaml
   spec:
     containers:
     - name: integration
       volumeMounts:
       - mountPath: /var/test
         name: my-empty-dir
     volumes:
     - emptyDir: {}
       name: my-empty-dir
   ```
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" 
to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   NONE
   ```
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to