helm / chartmuseum

helm chart repository server
https://chartmuseum.com
Apache License 2.0
3.6k stars 400 forks source link

Four digits version schema (e.g. 1.2.3.4) leads to "Improper constraint" #329

Open jopfeffe opened 4 years ago

jopfeffe commented 4 years ago

It seems that chartmuseum is not able to serve helm charts with four digits version schema. I good description of the issue can be found here: https://support.cloudbees.com/hc/en-us/articles/360035624272-ChartMuseum-API?mobile_site=false

Tested with:

mattfarina commented 4 years ago

This is a broader thing with Helm. The version of a chart is expected to be "A SemVer 2 version". A version, such as 2.164.1.2 isn't valid per semver so it will cause issues with Helm. The appVersion field does not expect a certain type.

RocketRaccoon commented 3 years ago

Actually Helm don't really care about a version if it is used for templating only. For cases when helm is not used for deployment and another naming is used for version such restriction makes no sense - you can upload chart with non-semver2 format and you can download it by direct link. But such chart is unreachable through API.