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

upload charts example #67

Open
wibed opened this issue Jul 17, 2022 · 9 comments
Open

upload charts example #67

wibed opened this issue Jul 17, 2022 · 9 comments

Comments

@wibed
Copy link

wibed commented Jul 17, 2022

i could not figure out on how to upload a chart file

image

could you make an example?

@opskumu
Copy link
Owner

opskumu commented Jul 18, 2022

Params Description
chart upload chart file, with suffix .tgz

the chart need your chart path, like /path/to/your/chart.tgz

@wibed
Copy link
Author

wibed commented Jul 20, 2022

so you meant like:
https://<ip-address>/api/charts/upload?chart=/path/to/your/chart.tgz

?

@opskumu
Copy link
Owner

opskumu commented Jul 20, 2022

yes

@stupid-yu
Copy link

so you meant like: https://<ip-address>/api/charts/upload?chart=/path/to/your/chart.tgz

not work.
@opskumu @wibed can u help me?

Example I want to upload chart using an API.
curl -X POST 'http://<ip-address>/api/charts/upload' -F 'chart=@/path/to/chart.tgz' -v
image

Logs
image

@opskumu
Copy link
Owner

opskumu commented Dec 21, 2022

@stupid-yu mean the chart upload failed?

@stupid-yu
Copy link

@opskumu yes, chart upload failed.
Here is my test:

curl -X POST 'http://<ip-address>/api/charts/upload' -F 'chart=@/path/to/chart.tgz'  
curl -X PUT 'http://<ip-address>/api/repositories'
curl -X GET 'http://<ip-address>/api/repositories/charts'

API upload chart did not work as expected
image

@opskumu
Copy link
Owner

opskumu commented Dec 22, 2022

@stupid-yu upload charts need list with list local charts api

  • GET
    • /api/charts/upload

@stupid-yu
Copy link

@opskumu it works.
image
Sorry,I made a mistake. I got upload chart confused with helm push.
Exactly,I need an API for helm push

@opskumu
Copy link
Owner

opskumu commented Dec 22, 2022

@stupid-yu get, helm push now not support, i'will support it later

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

No branches or pull requests

3 participants