helmify icon indicating copy to clipboard operation
helmify copied to clipboard

Only one ouput template-file is generated

Open o4rz3l opened this issue 2 years ago • 3 comments

Hi! i have the following issue. I'm pipeing the following into helmify via oc process -f template.yaml -o yaml | yq '.items[] | split_doc' | helmify oc is a CLI for working with Openshift Cluster. The ouput before helmify is the following:

apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
... 
---
apiVersion: v1
kind: Service
...
---
apiVersion: route.openshift.io/v1
kind: Route
...

I expected, that the chart would have three files, one per resource, but i only get one with all three in it. Is this intended or is there some error in my approach?

Thanks a lot for help!

o4rz3l avatar Jul 26 '23 10:07 o4rz3l

hi, helmify often groups the same kinds in a single file. Not sure if it was a good decision. But if resulted charts contain all templates it is not a bug. We can introduce a new flag to forcibly create a new file for each manifest. What do you think?

arttor avatar Aug 11 '23 07:08 arttor

Hi @arttor, thanks for your reply! Hm, yes, i think that would be a good idea, because it would give me/others the change to have one file for a resource. In my point of view a much better visibility of the resources in a Chart.

o4rz3l avatar Aug 28 '23 07:08 o4rz3l

Hello. Agreed with OP. I'd add that some tools like pre-commit's check-yaml complain about more than one resource / file.

rgarrigue avatar Oct 20 '23 09:10 rgarrigue