From b849b7daaabb63b48715c6f39996869dae687766 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 17 Dec 2019 16:50:37 +0530 Subject: [PATCH] Fix leader election flag in deployment files Fixes: https://github.com/ceph/ceph-csi/issues/748 Signed-off-by: Madhu Rajanna --- charts/ceph-csi-rbd/templates/provisioner-deployment.yaml | 2 +- .../cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml | 2 +- deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml index ed4755c63..37611969a 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml @@ -71,7 +71,7 @@ spec: - "--csi-address=$(ADDRESS)" - "--v=5" - "--timeout={{ .Values.provisioner.timeout }}" - - "leader-election=true" + - "--leader-election=true" env: - name: ADDRESS value: "unix:///csi/{{ .Values.provisionerSocketFile }}" diff --git a/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml b/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml index 59735c3c2..8839ec546 100644 --- a/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml +++ b/deploy/cephfs/kubernetes/v1.14+/csi-cephfsplugin-provisioner.yaml @@ -70,7 +70,7 @@ spec: args: - "--v=5" - "--csi-address=$(ADDRESS)" - - "leader-election=true" + - "--leader-election=true" - "--leader-election-type=leases" env: - name: ADDRESS diff --git a/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml index 49af85215..792dd94b1 100644 --- a/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml @@ -57,7 +57,7 @@ spec: - "--csi-address=$(ADDRESS)" - "--v=5" - "--timeout=150s" - - "leader-election=true" + - "--leader-election=true" env: - name: ADDRESS value: unix:///csi/csi-provisioner.sock