kubepack / chartify

📈 Generate Helm Charts from Kubernetes objects
Apache License 2.0
227 stars 25 forks source link

Flag input parameter to preserve resources name in output #33

Closed yadavnikhil closed 7 years ago

yadavnikhil commented 7 years ago

Can we have some flag to pass to Chartify, which can bypass name change for resources?

Ex. --preserve-name true - will not change resources name in output. will be same as input. It will solve most of the scenarios when working with secret combinations & local registry.

tamalsaha commented 7 years ago

Are you saying that no resource names will be changed?

yadavnikhil commented 7 years ago

yes, only for ObjectMeta.Name in generateObjectMetaTemplate(). This way, i can sync & control all names in my Charts. Its on demand, default will be existing logic.

tamalsaha commented 7 years ago

I think this sounds reasonable. Want to send a pr?