apache / camel-k

Apache Camel K is a lightweight integration platform, born on Kubernetes, with serverless superpowers
https://camel.apache.org/camel-k
Apache License 2.0
848 stars 345 forks source link

Add support for mounting volumes with mount trait #5654

Open hernanDatgDev opened 1 week ago

hernanDatgDev commented 1 week ago

Requirement

As a developer I want a way to add volume references to my integrations and also use the mount trait to mount configmaps/secrets. Currently this is not possible without interfering with the mount trait.

Problem

The pod template can be used to add volume references to an integration however this overrides any volumes/mounts that are set with the mount trait. This leaves a situation where a configmap can be mounted through the mount trait, a pod template can define an emptyDir volume and only the emptyDir from the template will actually propagate to the integration pod resulting in failures.

Proposal

A suggestion from Zulip is to enhance the mount trait to allow for volume support in addition to the existing persistent-volume-claim support.

Open questions

No response