Skip to content

ConfigMap data keys with leading underscore get removed #44

@felixscheinost

Description

@felixscheinost

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions