On Thu, Apr 20, 2017 at 10:57 AM, ced <cedric.vanlab...@gmail.com> wrote: > > Hi all, > > Is there a way to recursively go through a folder and from that make a > configmap? Or is it on the roadmap?
There isn't, and I don't know about the roadmap > > Use case is to mount all files in a folder (and its subfolders) into a > container as a volume. You can use the "--from-file" option and give it a directory, and it will create a key for all the files in there. But won't go recursively. You can, however, make a configmap create subdirectories when it is being mounted. You can specify the items array when in the configmap volume: https://kubernetes.io/docs/api-reference/v1.6/#configmapvolumesource-v1-core If you put something like "subdir/asd" to be the path, then the directory "subdir" will be created when mounting the configmap. So, you may be able to script this with current functionality :) -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.