Skip to content

Unable to mount configs & resources from the same configmap/secret even with key filtering #6358

@Hiwazup

Description

@Hiwazup

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions