Skip to content

Commit

Permalink
Merge pull request rook#4332 from ShyamsundarR/csidriver-fix
Browse files Browse the repository at this point in the history
CSI: Make attach mandatory in ceph CSIDriver object
  • Loading branch information
travisn authored Nov 18, 2019
2 parents 59164f2 + 48a0dec commit 893b80e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 4 deletions.
1 change: 0 additions & 1 deletion Documentation/ceph-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ below, which you should change to match where your images are located.
value: "quay.io/k8scsi/csi-provisioner:v1.3.0"
- name: ROOK_CSI_SNAPSHOTTER_IMAGE
value: "quay.io/k8scsi/csi-snapshotter:v1.2.0"
#ROOK_CSI_ATTACHER_IMAGE is required if Kubernetes version is 1.13.x
- name: ROOK_CSI_ATTACHER_IMAGE
value: "quay.io/k8scsi/csi-attacher:v1.2.0"
```
Expand Down
1 change: 0 additions & 1 deletion cluster/charts/rook-ceph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ csi:
#image: quay.io/k8scsi/csi-provisioner:v1.3.0
#snapshotter:
#image: quay.io/k8scsi/csi-snapshotter:v1.2.0
# attacher is required if Kubernetes version is 1.13.x
#attacher:
#image: quay.io/k8scsi/csi-attacher:v1.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ spec:
spec:
serviceAccount: rook-csi-cephfs-provisioner-sa
containers:
- name: csi-attacher
image: {{ .AttacherImage }}
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
- "--leader-election=true"
- "--timeout=150s"
- "--leader-election-type=leases"
- "--leader-election-namespace={{ .Namespace }}"
env:
- name: ADDRESS
value: /csi/csi-provisioner.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-provisioner
image: {{ .ProvisionerImage }}
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-rbdplugin-attacher
image: {{ .AttacherImage }}
args:
- "--v=5"
- "--timeout=150s"
- "--csi-address=$(ADDRESS)"
- "--leader-election=true"
- "--leader-election-type=leases"
- "--leader-election-namespace={{ .Namespace }}"
env:
- name: ADDRESS
value: /csi/csi-provisioner.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-snapshotter
image: {{ .SnapshotterImage }}
args:
Expand Down
1 change: 0 additions & 1 deletion cluster/examples/kubernetes/ceph/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ spec:
# value: "quay.io/k8scsi/csi-provisioner:v1.3.0"
#- name: ROOK_CSI_SNAPSHOTTER_IMAGE
# value: "quay.io/k8scsi/csi-snapshotter:v1.2.0"
# ROOK_CSI_ATTACHER_IMAGE is required if Kubernetes version is 1.13.x
#- name: ROOK_CSI_ATTACHER_IMAGE
# value: "quay.io/k8scsi/csi-attacher:v1.2.0"
# kubelet directory path, if kubelet configured to use other than /var/lib/kubelet path.
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/ceph/csi/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func StartCSIDrivers(namespace string, clientset kubernetes.Interface, ver *vers

// createCSIDriverInfo Registers CSI driver by creating a CSIDriver object
func createCSIDriverInfo(clientset kubernetes.Interface, name string) error {
attach := false
attach := true
mountInfo := false
// Create CSIDriver object
csiDriver := &k8scsi.CSIDriver{
Expand Down

0 comments on commit 893b80e

Please sign in to comment.