Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use it? #65

Open
ksemele opened this issue Dec 2, 2023 · 4 comments
Open

How to use it? #65

ksemele opened this issue Dec 2, 2023 · 4 comments
Labels
question Further information is requested

Comments

@ksemele
Copy link

ksemele commented Dec 2, 2023

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
Copy link
Author

ksemele commented Dec 2, 2023

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
Copy link
Member

yxxhero commented Dec 24, 2023

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

@yxxhero yxxhero added the question Further information is requested label Dec 24, 2023
@suvaanshkumar
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants