mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
deploy: add csidriver object for cephfs and rbd
csidriver object can be created on the kubernetes for below reason. If a CSI driver creates a CSIDriver object, Kubernetes users can easily discover the CSI Drivers installed on their cluster (simply by issuing kubectl get CSIDriver) Ref: https://kubernetes-csi.github.io/docs/csi-driver-object.html#what-is-the-csidriver-object attachRequired is always required to be set to true to avoid issue on RWO PVC. more details about it at https://github.com/rook/rook/pull/4332 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
d80b8d7fc5
commit
fba6a2d0c3
@ -1,10 +1,11 @@
|
||||
{{- if not .Values.provisioner.attacher.enabled -}}
|
||||
apiVersion: storage.k8s.io/v1beta1
|
||||
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.GitVersion }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
{{ else }}
|
||||
apiVersion: storage.k8s.io/v1betav1
|
||||
{{ end }}
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
name: {{ .Values.driverName }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
attachRequired: false
|
||||
attachRequired: true
|
||||
podInfoOnMount: false
|
||||
{{- end -}}
|
||||
|
@ -1,10 +1,11 @@
|
||||
{{- if not .Values.provisioner.attacher.enabled -}}
|
||||
apiVersion: storage.k8s.io/v1beta1
|
||||
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.GitVersion }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
{{ else }}
|
||||
apiVersion: storage.k8s.io/betav1
|
||||
{{ end }}
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
name: {{ .Values.driverName }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
attachRequired: false
|
||||
attachRequired: true
|
||||
podInfoOnMount: false
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user