You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With helm 2.16.1, helm-push 0.7.1 and chartmuseum 0.10.0, try the below
$ helm create old-chart
$ # change appVersion in Chart.yaml to "722225e2"
$ vi old-chart/Chart.yaml
$ # now push the chart to chartmuseum repo called "local"
$ helm push old-chart local
$ # check the index.yaml
$ curl http://localhost:8080/index.yaml
apiVersion: v1
entries:
old-chart:
apiVersion: v1
appVersion: "7.22225e+07"
created: "2019-12-04T22:16:19.562137212+05:30"
description: A Helm chart for Kubernetes
digest: 0b891b622bd0ab3e8e22302dab504481d10887a011bb92f38830097c44b3ccd3
name: old-chart
urls:
Now if you see the appVersion, you notice that it's in some scientific notation form. This does not happen when directly curl is used to push charts this way -
$ helm package old-chart
$ # check the tar ball Chart.yaml, it will still be "722225e2"
$ vi old-chart-0.1.0.tgz
$ curl --data-binary "@old-chart-0.1.0.tgz" http://localhost:8080/api/charts
The issue is in helm-push. When push is done, the chart contents are read (parsed), and then later pushed to chartmuseum. While parsing and then serializing, it removes the quotes (due to a yaml package bug) and then it pushes to the chartmusem, where the number is made into a string and put in double quotes, but it's converted a bit, compared to the original string
Updating yaml package to latest version solves the issue
The text was updated successfully, but these errors were encountered:
With
helm 2.16.1
,helm-push 0.7.1
andchartmuseum 0.10.0
, try the below$ helm create old-chart
$ # change appVersion in Chart.yaml to "722225e2"
$ vi old-chart/Chart.yaml
$ # now push the chart to chartmuseum repo called "local"
$ helm push old-chart local
$ # check the index.yaml
$ curl http://localhost:8080/index.yaml
apiVersion: v1
entries:
old-chart:
appVersion: "7.22225e+07"
created: "2019-12-04T22:16:19.562137212+05:30"
description: A Helm chart for Kubernetes
digest: 0b891b622bd0ab3e8e22302dab504481d10887a011bb92f38830097c44b3ccd3
name: old-chart
urls:
version: 0.1.0
generated: "2019-12-04T22:16:22+05:30"
serverInfo: {}
Now if you see the appVersion, you notice that it's in some scientific notation form. This does not happen when directly
curl
is used to push charts this way -The issue is in helm-push. When push is done, the chart contents are read (parsed), and then later pushed to chartmuseum. While parsing and then serializing, it removes the quotes (due to a yaml package bug) and then it pushes to the chartmusem, where the number is made into a string and put in double quotes, but it's converted a bit, compared to the original string
Updating yaml package to latest version solves the issue
The text was updated successfully, but these errors were encountered: