deislabs / osiris

A general purpose, scale-to-zero component for Kubernetes
MIT License
464 stars 51 forks source link

helm install with --version specified fails #73

Open channeladam opened 4 years ago

channeladam commented 4 years ago

Environment:

What happened?

After adding the repo as per the installation instructions, if I run: $ helm install osiris osiris/osiris-edge --namespace osiris-system --devel --debug it successfully installs chart: osiris-edge-0.0.1-2019.11.26.17.17.31-2bf13af

If I try to specify that version myself: $ helm install osiris osiris/osiris-edge --namespace osiris-system --version osiris-edge-0.0.1-2019.11.26.17.17.31-2bf13af --debug an error occurs:

install.go:159: [debug] Original chart version: "osiris-edge-0.0.1-2019.11.26.17.17.31-2bf13af"
Error: chart "osiris-edge" matching osiris-edge-0.0.1-2019.11.26.17.17.31-2bf13af not found in osiris index. (try 'helm repo update'): improper constraint: osiris-edge-0.0.1-2019.11.26.17.17.31-2bf13af
helm.go:84: [debug] improper constraint: osiris-edge-0.0.1-2019.11.26.17.17.31-2bf13af
chart "osiris-edge" matching osiris-edge-0.0.1-2019.11.26.17.17.31-2bf13af not found in osiris index. (try 'helm repo update')
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).ResolveChartVersion
    helm.sh/helm/v3/pkg/downloader/chart_downloader.go:234
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).DownloadTo
    helm.sh/helm/v3/pkg/downloader/chart_downloader.go:87
helm.sh/helm/v3/pkg/action.(*ChartPathOptions).LocateChart
    helm.sh/helm/v3/pkg/action/install.go:667
main.runInstall
    helm.sh/helm/v3/cmd/helm/install.go:171
main.newInstallCmd.func1
    helm.sh/helm/v3/cmd/helm/install.go:117
github.com/spf13/cobra.(*Command).execute
    github.com/spf13/cobra@v1.0.0/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
    github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
    github.com/spf13/cobra@v1.0.0/command.go:887
main.main
    helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
    runtime/proc.go:203
runtime.goexit
    runtime/asm_amd64.s:1373

What you expected to happen? Successful installation when version number is specified.

How to reproduce it (as minimally and precisely as possible): As above.

Anything else that we need to know?

$helm version
version.BuildInfo{Version:"v3.2.4", GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", GitTreeState:"clean", GoVersion:"go1.14.4"}

Appears to be an issue with the chart version numbering / semver compliance. This potentially may be helpful: https://github.com/jupyterhub/chartpress/issues/86#issuecomment-566520409