hall / kubenix

Kubernetes management with Nix
https://kubenix.org/
MIT License
319 stars 30 forks source link

ConfigMap data keys with leading underscore get removed #44

Open felixscheinost opened 1 year ago

felixscheinost commented 1 year ago

I need to populate a ConfigMap with a key that is starting with a underscore but the resulting ConfigMap doesn't contain the expected keys.

Example:

  kubernetes.resources.configMaps.foo.data._FOO = "_bar";

It seems this like is the culprit: https://github.com/hall/kubenix/blob/e4d036576436b9983216584a89388af3da995043/modules/k8s.nix#L21

Do you know what the purpose of this filter is?

I tried going back the git history but I reached cbf84e25a574b9bad1a97e1e29a2d5b2fe7d660a (first commit).