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

   Fixes #5164
   
   ## What changed
   
   - Adds the opt-in `mount.projected-volumes` boolean (default: `false`).
   - When enabled, combines `mount.resources` ConfigMap and Secret entries that 
target the same effective directory into one Kubernetes projected volume.
   - Preserves the existing per-resource mount behavior when the option is 
disabled or when a resource has no matching destination directory.
   - Supports selected keys mapped to explicit destination filenames, while 
leaving unfiltered projection item lists unset so newly added ConfigMap/Secret 
keys remain visible through normal projected-volume updates.
   - Rejects duplicate destination paths and file/directory prefix conflicts 
instead of relying on Kubernetes projection precedence.
   - Propagates the projected mount to init containers and updates the trait 
docs, API CRD schemas, CRD API reference, and Helm CRD bundle.
   
   ## Validation
   
   - `go test -p 1 ./pkg/trait -run 
'TestMountProjectedVolumes|TestMountTraitAppliesProjectedVolumes' -count=1` — 
passed.
   - `go test -p 1 ./pkg/trait -count=1` — passed.
   - `git diff --check` — passed.
   
   The tests cover mixed ConfigMap/Secret projection, selected-key filename 
mapping, init-container mount propagation, duplicate-path rejection, and 
application through the Mount trait into a Deployment pod spec.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to