Bug description
As discussed in #camel-k > Mount config and resource from same secret, 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:
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