cathive / concourse-chartmuseum-resource

interacts with a Chart Museum instance or Harbor (Kubernetes Helm Charts storage)
Apache License 2.0
14 stars 9 forks source link

Add get_params for put step #10

Open Hertog-PJ opened 4 years ago

Hertog-PJ commented 4 years ago

Hi

Would it be possible to add a get_params to the out parameters in which you can disable the download step after uploading a chart to the museum.

Currently when uploading a chart to the museum, the put step will try to validate this by immediately downloading the new chart from the chart museum.

It would be nice to have more control over this by being able to disable this verification step.

This parameter is for example also used for the docker image concourse resource (https://github.com/concourse/docker-image-resource) where they have the get_params to skip the validation step.

headcr4sh commented 4 years ago

Seems like a legit extension. If it can be done, I'll gladly review (and merge) any PR that might add such a feature.

fenech commented 2 years ago

Greetings from the future! I have a related issue to this one, and I was thinking about making some modifications to the "put" step, but I just wanted to clarify something.

Currently the resource immediately re-downloads the chart that it pushed, during the "put" step . In our registry, this part is causing us intermittent problems, since it seems that sometimes, the chart is not ready in time to download straight away:

{"errors":[{"code":"NOT_FOUND","message":"fail to get chart version: no chart version found for ourchart-X.Y.Z"}]}

Then (following the Concourse convention) it also does an implicit "get" step. So normally we end up downloading the chart twice.

I just wanted to clarify whether this switch to skip the download during the implicit "get" should also affect the behaviour of the "put"?