helmify
helmify copied to clipboard
Only one ouput template-file is generated
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!
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?
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.
Hello. Agreed with OP. I'd add that some tools like pre-commit's check-yaml complain about more than one resource / file.