-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubernetesVersion doesn't work for kubernetes with complex version string #9371
Comments
I can explain what's going on here and what you can do now to get the result you want.
Per the spec on pre-releases:
A Kubernetes pre-release (e.g., Because A solution for this in the short term is to add |
Thanks, Matt. # helm install trident trident-operator --namespace trident --create-namespace
Error: chart requires kubeVersion: >= v1.16.0, < v1.21-0 which is incompatible with Kubernetes v1.20.2-34+c6851e88267786
$ cat Chart.yaml | grep kubeVersion
# kubeVersion: ">= 1.16.0, < 2.0.0-0"
kubeVersion: ">= v1.16.0, < v1.21-0"
# kubeVersion: ">= 1.16.0, < 1.21.0-0"
# helm version
version.BuildInfo{Version:"v3.5.2", GitCommit:"167aac70832d3a384f65f9745335e9fb40169dc2", GitTreeState:"dirty", GoVersion:"go1.15.7"} I used
I don't mind to mark out |
I have verified this bug. |
@scaleoutsean I figured out what's going on and what you can do in the short term. The simple solution is to use: kubeVersion: ">= v1.16.0-0, < v1.21-0" What's going on under the hood is that the and condition evaluates the version against each condition. The first one was not looking for pre-releases so it was rejected immediately. Each of the conditions in the set needs to be looking for pre-releases right now. |
That's funny - who would have thought! Great find. We can close this issue as far as I am concerned, thanks! |
- Unless we add `-0`, see helm/helm#9371 for details. - Besides that, the semver parser doesn't allow with prefix `v`. Remove the prefix `v`. https://github.com/rancher/rancher/blob/release/v2.5.9/pkg/catalog/manager/manager.go#L218-L221 Longhorn 2963 Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
- Unless we add `-0`, see helm/helm#9371 for details. - Besides that, the semver parser doesn't allow with prefix `v`. Remove the prefix `v`. https://github.com/rancher/rancher/blob/release/v2.5.9/pkg/catalog/manager/manager.go#L218-L221 Longhorn 2963 Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
- Unless we add `-0`, see helm/helm#9371 for details. - Besides that, the semver parser doesn't allow with prefix `v`. Remove the prefix `v`. https://github.com/rancher/rancher/blob/release/v2.5.9/pkg/catalog/manager/manager.go#L218-L221 Longhorn 2963 Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
Addresses issues like > Error: INSTALLATION FAILED: chart requires kubeVersion: >=1.24.0 which is incompatible with Kubernetes v1.25.15-eks-4f4795d helm/helm#9371 Signed-off-by: Jeremy Young <11699937+jrm16020@users.noreply.github.com>
This is like #6190 except that was fixed by adding
-0
(v1.xx.x-0
) which doesn't seem to work for more complex version strings likev1.20.2-34+350770ed07a558
:Output of
helm version
:Output of
kubectl version
:Cloud Provider/Platform (AKS, GKE, Minikube etc.):
The text was updated successfully, but these errors were encountered: