chartify icon indicating copy to clipboard operation
chartify copied to clipboard

How to use it?

Open ksemele opened this issue 2 years ago • 5 comments

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 avatar Dec 02 '23 12:12 ksemele

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.

ksemele avatar Dec 02 '23 12:12 ksemele

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

yxxhero avatar Dec 24 '23 07:12 yxxhero

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?

suvaanshkumar avatar Apr 23 '24 19:04 suvaanshkumar

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])

richard-autry avatar Jun 25 '24 13:06 richard-autry