Skip to content

Commit

Permalink
csi: fix stagingpath
Browse files Browse the repository at this point in the history
Kubernetes 1.24 and newer use a different path for staging the volume.
That means the CSI-driver is requested to mount the volume at an other
location, compared to previous versions of Kubernetes.

The backward compatibility should be taken care by the CSI driver.

See-also: kubernetes/kubernetes#107065
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
(cherry picked from commit 2627f32)
  • Loading branch information
Prasanna Kumar Kalever authored and mergify[bot] committed Jun 27, 2022
1 parent ba67a90 commit 19c72a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operator/ceph/csi/template/rbd/csi-rbdplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
- "--metricsport={{ .RBDGRPCMetricsPort }}"
- "--metricspath=/metrics"
- "--enablegrpcmetrics={{ .EnableCSIGRPCMetrics }}"
- "--stagingpath={{ .KubeletDirPath }}/plugins/kubernetes.io/csi/pv/"
- "--stagingpath={{ .KubeletDirPath }}/plugins/kubernetes.io/csi/"
{{ if .EnableCSIAddonsSideCar }}
- "--csi-addons-endpoint=$(CSIADDONS_ENDPOINT)"
{{ end }}
Expand Down

0 comments on commit 19c72a3

Please sign in to comment.