Option to supply name when exporting k8s config map #720
Labels
co
8000
mmunity
feat
New feature or request
triage
The issue is new and needs to be triaged by a maintainer
Suggestion
I am using configu to manage configurations and export the configs to a k8s config map, however I could not find a way to supply a name to the config map definition as required by k8s.
For example I have a
fruit.cfgu.yaml
And I run
configu eval | configu export --format config-map
, it givesBut the response is missing
metadata.name
to work so I am looking for a direct way to properly supply the config map name, so it can output.I took a further look into how the configmap export is implemented, there is
name: options?.name?.toLowerCase()
in theKubernetesConfigMapFormatter
but looks like the value ofoptions
is always to be{}
as I see in reduceConfigs, so I suspect there is no way to supply a value tooptions
at the moment, not sure if I read the code correctly. And I think adding this option will change the cli and quite a bit of architecture, so I hold back from directly submitting a PR, but I am happy to contribute.For anyone facing the same issue, I will suggest doing the following, as there is another issue causing k8s config map export is not working out of the box - #718
Motivation
No response
Context
No response
The text was updated successfully, but these errors were encountered: