helmfile / chartify

Convert K8s manifests/Kustomization into Helm Chart
Apache License 2.0
75 stars 29 forks source link

How to use it? #65

Open ksemele opened 9 months ago

ksemele commented 9 months ago

Hello, everyone! I tried to use the tool, but I'm a little confused. In the Makefile, I don't see any build section, and in the readme, there are no instructions about how to build and run it. How can I run it?

ksemele commented 9 months ago

I can build it that way, but I'm not sure.

$ go build ./cmd/chartify/

$ ./chartify -h
Usage of ./chartify:
  -d value
        one or more "alias=chart:version" to add adhoc chart dependencies
  -f string
        The path to the input file or stdout(-) (default "-")
  -include-crds
        Whether to render CRDs contained in the chart and include the results into the output
  -o string
        The path to the output directory
  -strategic-merge-patch string
        Path to a kustomize strategic merge patch file

If that isn't correct, I think we need to add the correct way to build the tool to the documentation.

yxxhero commented 8 months ago

@ksemele thanks for your issue. I will build this and push then into github release pages.

suvaanshkumar commented 4 months ago

The above does not really help. We tried playing around different combinations of arguments. But nothing works. Can you share an example to use this to convert a kubernetes resource to helm chart?

richard-autry commented 2 months ago

The CLI does not appear to work correctly. It is counting the -o flag as an argument for some reason:

Example

./chartify /Users/.../kustomization.yaml -o ./release
Error: exactly 2 arguments has been expected. Got 3 ([/Users/.../kustomization.yaml -o ./release])