mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
d04bfe890f
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>
12 lines
274 B
YAML
12 lines
274 B
YAML
{{ if semverCompare ">=1.18.0-beta.1" .Capabilities.KubeVersion.Version }}
|
|
apiVersion: storage.k8s.io/v1
|
|
{{ else }}
|
|
apiVersion: storage.k8s.io/v1betav1
|
|
{{ end }}
|
|
kind: CSIDriver
|
|
metadata:
|
|
name: {{ .Values.driverName }}
|
|
spec:
|
|
attachRequired: true
|
|
podInfoOnMount: false
|