camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Add support for mounting volumes with mount trait

Open hernanDatgDev opened this issue 1 year ago • 0 comments

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

hernanDatgDev avatar Jun 17 '24 23:06 hernanDatgDev