helm: fix k8s version string for csidriver crds semverCompare

Current implementation of semvercompare fails against
pre-release versions. This commit fixes it by using
the entire version string at which csidriver api became GA.

s|">=1.18"|">=1.18.0-beta.1"

Fixes: #2039

Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Rakshith R 2021-05-10 16:16:14 +05:30 committed by mergify[bot]
parent 13b85d09fd
commit d04bfe890f
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.Version }}
{{ if semverCompare ">=1.18.0-beta.1" .Capabilities.KubeVersion.Version }}
apiVersion: storage.k8s.io/v1
{{ else }}
apiVersion: storage.k8s.io/v1betav1

View File

@ -1,4 +1,4 @@
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.Version }}
{{ if semverCompare ">=1.18.0-beta.1" .Capabilities.KubeVersion.Version }}
apiVersion: storage.k8s.io/v1
{{ else }}
apiVersion: storage.k8s.io/betav1