Skip to content

make example with map in volumes configmap

Hans requested to merge (removed):hupling-main-patch-96694 into main

What does this MR do?

current docs:

items map[string]string no Key-to-path mapping for keys from the configMap that should be used.

make an additional example with configmap volumes. it is unclear what a map[string]string is. I want to make an example in your docs.

There are no explanation about the section name [[runners.kubernetes.volumes.config_map.items]]. It is only used in the example.

Why was this MR needed?

 [runners.kubernetes.volumes.config_map.items]
        "key_1" = "relative/path/to/key_1_file"

this only works if you use one configmap or global for all configmaps. If you have different configmaps and you want to map one item with different names. it doesn't work. the config map is automatically generated and I can't change the keys

  • configmap A -> key1 --> different_value1.txt
  • configmap B -> key1 --> different_value2.txt
# this doesn't work. because key_1 is aleready defined
 [runners.kubernetes.volumes.config_map.items]
        "key_1" = "relative/path/to/key_1_file"
        "key_1" = "key_2_file"

What's the best way to test this MR?

try to inject a configmap key in different paths of a container. Here for example if you want to inject certificates !3586 (closed)

What are the relevant issue numbers?

Edited by Hans

Merge request reports