helm-wrapper icon indicating copy to clipboard operation
helm-wrapper copied to clipboard

upload charts example

Open wibed opened this issue 3 years ago • 9 comments

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

image

could you make an example?

wibed avatar Jul 17 '22 09:07 wibed

Params Description
chart upload chart file, with suffix .tgz

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

opskumu avatar Jul 18 '22 02:07 opskumu

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

?

wibed avatar Jul 20 '22 05:07 wibed

yes

opskumu avatar Jul 20 '22 06:07 opskumu

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

stupid-yu avatar Dec 21 '22 09:12 stupid-yu

@stupid-yu mean the chart upload failed?

opskumu avatar Dec 21 '22 11:12 opskumu

@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

stupid-yu avatar Dec 22 '22 02:12 stupid-yu

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

  • GET
    • /api/charts/upload

opskumu avatar Dec 22 '22 02:12 opskumu

@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

stupid-yu avatar Dec 22 '22 03:12 stupid-yu

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

opskumu avatar Dec 22 '22 03:12 opskumu