Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

helm install with --version specified fails #73

Open
channeladam opened this issue Aug 11, 2020 · 0 comments
Open

helm install with --version specified fails #73

channeladam opened this issue Aug 11, 2020 · 0 comments

Comments

@channeladam
Copy link

channeladam commented Aug 11, 2020

Environment:

  • Kubernetes distribution (e.g. AKS, ACS Engine, GKE, EKS, etc.): AKS

  • Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5", GitCommit:"e6503f8d8f769ace2f338794c914a96fc335df0f", GitTreeState:"archive", BuildDate:"2020-07-01T16:28:46Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.9", GitCommit:"e3808385c7b3a3b86db714d67bdd266dc2b6ab62", GitTreeState:"clean", BuildDate:"2020-07-15T20:50:36Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
  • Osiris version (specify by SHA or semver):
    All

  • Install method (specify exact helm install command used):
    helm install

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: jupyterhub/chartpress#86 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant