git2kube icon indicating copy to clipboard operation
git2kube copied to clipboard

Config files to multiple configmaps

Open mward29 opened this issue 5 years ago • 2 comments

From my testing it looks as though git2kube can place multiple config files into a single configmap. It would be great if individual configmaps could be created per config file.

Example: web-dev.txt

creates- web-dev (configmap name) data: (contents of web-dev.txt)

rinse and repeat for other files.

mward29 avatar Apr 10 '19 16:04 mward29

How the api (flags) should look like? Stripping the extension of the file might not be general enough, maybe some template for the cfgmap name?

coufalja avatar May 06 '19 11:05 coufalja

Stripping the extension from the file name places naming of data entries cleanly in the users hands with zero disruption to existing environments. Templating this would likely disrupt this and require more work on the user to conform to the template. Even applications in Kubernetes would likely have to change to pull the correct data from the config map.

mward29 avatar May 06 '19 13:05 mward29