Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigMap data keys with leading underscore get removed #44

Open
felixscheinost opened this issue Nov 21, 2023 · 0 comments
Open

ConfigMap data keys with leading underscore get removed #44

felixscheinost opened this issue Nov 21, 2023 · 0 comments

Comments

@felixscheinost
Copy link
Contributor

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:

then mapAttrs (_n: moduleToAttrs) (filterAttrs (n: v: v != null && !(hasPrefix "_" n)) value)

Do you know what the purpose of this filter is?

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

felixscheinost added a commit to felixscheinost/kubenix that referenced this issue Nov 21, 2023
felixscheinost added a commit to felixscheinost/kubenix that referenced this issue Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant