mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
cleanup: fix beta apiVersion for csidriver
This change resolves a typo for installing the CSIDriver resource in Kubernetes clusters before 1.18, where the apiVersion is incorrect. See also: https://kubernetes-csi.github.io/docs/csi-driver-object.html [ndevos: replace v1betav1 in examples with v1beta1] Signed-off-by: Thomas Kooi <t.j.kooi@avisi.nl>
This commit is contained in:
parent
43f753760b
commit
75b9b9fe6d
@ -1,7 +1,7 @@
|
||||
{{ if semverCompare ">=1.18.0-beta.1" .Capabilities.KubeVersion.Version }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
{{ else }}
|
||||
apiVersion: storage.k8s.io/v1betav1
|
||||
apiVersion: storage.k8s.io/v1beta1
|
||||
{{ end }}
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
# if Kubernetes version is less than 1.18 change
|
||||
# apiVersion to storage.k8s.io/v1betav1
|
||||
# apiVersion to storage.k8s.io/v1beta1
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
# if Kubernetes version is less than 1.18 change
|
||||
# apiVersion to storage.k8s.io/v1betav1
|
||||
# apiVersion to storage.k8s.io/v1beta1
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
# Snapshot API version compatibility matrix:
|
||||
# v1betav1:
|
||||
# v1beta1:
|
||||
# v1.17 =< k8s < v1.20
|
||||
# 2.x =< snapshot-controller < v4.x
|
||||
# v1:
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
# Snapshot API version compatibility matrix:
|
||||
# v1betav1:
|
||||
# v1beta1:
|
||||
# v1.17 =< k8s < v1.20
|
||||
# 2.x =< snapshot-controller < v4.x
|
||||
# v1:
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
# Snapshot API version compatibility matrix:
|
||||
# v1betav1:
|
||||
# v1beta1:
|
||||
# v1.17 =< k8s < v1.20
|
||||
# 2.x =< snapshot-controller < v4.x
|
||||
# v1:
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
# Snapshot API version compatibility matrix:
|
||||
# v1betav1:
|
||||
# v1beta1:
|
||||
# v1.17 =< k8s < v1.20
|
||||
# 2.x =< snapshot-controller < v4.x
|
||||
# v1:
|
||||
|
Loading…
Reference in New Issue
Block a user