Hiwazup opened a new issue, #6358:
URL: https://github.com/apache/camel-k/issues/6358

   ### Bug description
   
   As discussed in [#camel-k > Mount config and resource from same 
secret](https://camel.zulipchat.com/#narrow/channel/257299-camel-k/topic/Mount.20config.20and.20resource.20from.20same.20secret/with/553543160),
 it is not possible to mount configs and and resources from the same 
configmap/secret even with key filtering as the volume name is made up of only 
the secret and not a combination of the secret and the key. 
   
   For example:
   ```yaml
   spec:
     trait:
       mount:
         resources:
           - "secret:my-secret/truststore.p12"
         configs:
           - "secret:my-secret/truststore.password"
   ```
   
   fails to create the deployment with the following error:
   > .spec.template.spec.volumes: duplicate entries for key [name="my-secret"]
   
   ### Camel K or runtime version
   
   2.8


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