-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 rook/rook#4332 Signed-off-by: Madhu Rajanna <[email protected]>
- Loading branch information
1 parent
d80b8d7
commit fba6a2d
Showing
6 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
# if Kubernetes version is less than 1.18 change | ||
# apiVersion to storage.k8s.io/v1betav1 | ||
apiVersion: storage.k8s.io/v1 | ||
kind: CSIDriver | ||
metadata: | ||
name: cephfs.csi.ceph.com | ||
spec: | ||
attachRequired: true | ||
podInfoOnMount: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
# if Kubernetes version is less than 1.18 change | ||
# apiVersion to storage.k8s.io/v1betav1 | ||
apiVersion: storage.k8s.io/v1 | ||
kind: CSIDriver | ||
metadata: | ||
name: rbd.csi.ceph.com | ||
spec: | ||
attachRequired: true | ||
podInfoOnMount: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters