mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 00:00:23 +00:00
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:
parent
13b85d09fd
commit
d04bfe890f
@ -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
|
apiVersion: storage.k8s.io/v1
|
||||||
{{ else }}
|
{{ else }}
|
||||||
apiVersion: storage.k8s.io/v1betav1
|
apiVersion: storage.k8s.io/v1betav1
|
||||||
|
@ -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
|
apiVersion: storage.k8s.io/v1
|
||||||
{{ else }}
|
{{ else }}
|
||||||
apiVersion: storage.k8s.io/betav1
|
apiVersion: storage.k8s.io/betav1
|
||||||
|
Loading…
Reference in New Issue
Block a user