helmify icon indicating copy to clipboard operation
helmify copied to clipboard

Creating Resources in multiple namespace

Open suvaanshkumar opened this issue 1 year ago • 2 comments

Issue: Helmify does not support a list of Yaml files with multiple namespace Situation: When I have a list of kubernetes resources in yaml and all of them have specific namespaces for them and the total number of unique namespaces is more than 1. When I use helmify to generate helm charts, I don't get any namespace in metadata for any resources.

Expectation: In the helm chart generated, We get the namespace in the metadata in the chart/templates/yaml file.

Steps to Reproduce :

Step1: We have two yaml files as below- nginx-service.txt nginx-deployment.txt Please Note: The extension of the above have been changed to txt because yaml is not yet supported by github.

Step2: helmify -f samplechart And then you will observe the Helm chart created with no namespaces in metadata in templates/nginx-service.yaml and templates/nginx-deployment.yaml

suvaanshkumar avatar Apr 23 '24 18:04 suvaanshkumar

true, multi-ns charts are not supported right now. Unfortunately, I don't have capacity to implement it right now, but i can help with review if someone volunteers implementing it.

arttor avatar Apr 24 '24 06:04 arttor

Hi @arttor , Thanks for your response. I will try to make these changes. Just started with it here. Will keep you updated in case I will be able to make this contribution.

suvaanshkumar avatar Apr 26 '24 03:04 suvaanshkumar

changes are available in v0.4.13 release

arttor avatar May 22 '24 07:05 arttor