Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

String comparison in version detection #55

Open
AnatolyRugalev opened this issue May 30, 2018 · 0 comments
Open

String comparison in version detection #55

AnatolyRugalev opened this issue May 30, 2018 · 0 comments

Comments

@AnatolyRugalev
Copy link

AnatolyRugalev commented May 30, 2018

This is a BUG REPORT

On Kubernetes 1.10.0 I got a problem with version detection. I have .Capabilities.KubeVersion.Minor equal to "10" and this is less than "8" by rules of Golang. We need to convert minor version to integer and then compare.

This line works fine for me

{{- if ge (int (.Capabilities.KubeVersion.Minor)) 8 -}}

Version of Helm and Kubernetes:
Kubernetes 1.10.0
Helm 2.8.2

@AnatolyRugalev AnatolyRugalev changed the title String comparison in version check String comparison in version detection May 30, 2018
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