kubernetes-sigs / kustomize

Customization of kubernetes YAML configurations
Apache License 2.0
11.03k stars 2.25k forks source link

configMapGenerator should accept existing ConfigMap as input #5759

Open siom79 opened 2 months ago

siom79 commented 2 months ago

Eschewed features

What would you like to have added?

The configMapGenerator appends to the name of the generated ConfigMap a hash value that allows restarting the containers that actually use this ConfigMap when used together with GitOps tools like ArgoCD.

Why is this needed?

Enhance the existing functionality of the configMapGenerator such that it additionally accepts an existing ConfigMap.``

Can you accomplish the motivating task without this feature, and if so, how?

Currently properties files and env files are supported but not existing ConfigMaps.

In my setup I have a large existing ConfigMap that I do not want to convert into a properties or env file, but I want that the configMapGenerator appends the hash.

What other solutions have you considered?

Converting the large ConfigMap into properties files. :wea

Anything else we should know?

No response

Feature ownership

k8s-ci-robot commented 2 months ago

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.