Skip to content

Commit 60ce358

Browse files
committed
openstack-manila: Remove --nodeid parameter
This option is deprecated as the driver can now auto-configure this [1]. We can also remove some unnecessary quoting. Note that we don't remove the option from the NFS driver as that is a separate binary that doesn't support this auto-configuration. [1] kubernetes/cloud-provider-openstack#2734 Signed-off-by: Stephen Finucane <[email protected]>
1 parent f9a103d commit 60ce358

File tree

7 files changed

+10
-40
lines changed

7 files changed

+10
-40
lines changed

assets/overlays/openstack-manila/base/node_nfs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ spec:
3838
cpu: 10m
3939
args:
4040
- --v=${LOG_LEVEL}
41-
- "--nodeid=$(NODE_ID)"
42-
- "--endpoint=unix://plugin/csi.sock"
43-
- "--mount-permissions=0777"
41+
- --nodeid=$(NODE_ID)
42+
- --endpoint=unix://plugin/csi.sock
43+
- --mount-permissions=0777
4444
env:
4545
- name: NODE_ID
4646
valueFrom:

assets/overlays/openstack-manila/generated/hypershift/controller.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,13 @@ spec:
9292
- --provide-node-service=false
9393
- --v=${LOG_LEVEL}
9494
- --cluster-id=${CLUSTER_ID}
95-
- --nodeid=$(NODE_ID)
9695
- --endpoint=$(CSI_ENDPOINT)
9796
- --drivername=$(DRIVER_NAME)
9897
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
9998
- --fwdendpoint=$(FWD_CSI_ENDPOINT)
10099
env:
101100
- name: DRIVER_NAME
102101
value: manila.csi.openstack.org
103-
- name: NODE_ID
104-
valueFrom:
105-
fieldRef:
106-
fieldPath: spec.nodeName
107102
- name: CSI_ENDPOINT
108103
value: unix:///plugin/csi.sock
109104
- name: MANILA_SHARE_PROTO

assets/overlays/openstack-manila/generated/hypershift/node.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,13 @@ spec:
3838
- --provide-controller-service=false
3939
- --provide-node-service=true
4040
- --v=${LOG_LEVEL}
41-
- --nodeid=$(NODE_ID)
4241
- --endpoint=$(CSI_ENDPOINT)
4342
- --drivername=$(DRIVER_NAME)
4443
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
4544
- --fwdendpoint=$(FWD_CSI_ENDPOINT)
4645
env:
4746
- name: DRIVER_NAME
4847
value: manila.csi.openstack.org
49-
- name: NODE_ID
50-
valueFrom:
51-
fieldRef:
52-
fieldPath: spec.nodeName
5348
- name: CSI_ENDPOINT
5449
value: unix:///var/lib/kubelet/plugins/manila.csi.openstack.org/csi.sock
5550
- name: FWD_CSI_ENDPOINT

assets/overlays/openstack-manila/generated/standalone/controller.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,13 @@ spec:
6262
- --provide-node-service=false
6363
- --v=${LOG_LEVEL}
6464
- --cluster-id=${CLUSTER_ID}
65-
- --nodeid=$(NODE_ID)
6665
- --endpoint=$(CSI_ENDPOINT)
6766
- --drivername=$(DRIVER_NAME)
6867
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
6968
- --fwdendpoint=$(FWD_CSI_ENDPOINT)
7069
env:
7170
- name: DRIVER_NAME
7271
value: manila.csi.openstack.org
73-
- name: NODE_ID
74-
valueFrom:
75-
fieldRef:
76-
fieldPath: spec.nodeName
7772
- name: CSI_ENDPOINT
7873
value: unix:///plugin/csi.sock
7974
- name: MANILA_SHARE_PROTO

assets/overlays/openstack-manila/generated/standalone/node.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,13 @@ spec:
3838
- --provide-controller-service=false
3939
- --provide-node-service=true
4040
- --v=${LOG_LEVEL}
41-
- --nodeid=$(NODE_ID)
4241
- --endpoint=$(CSI_ENDPOINT)
4342
- --drivername=$(DRIVER_NAME)
4443
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
4544
- --fwdendpoint=$(FWD_CSI_ENDPOINT)
4645
env:
4746
- name: DRIVER_NAME
4847
value: manila.csi.openstack.org
49-
- name: NODE_ID
50-
valueFrom:
51-
fieldRef:
52-
fieldPath: spec.nodeName
5348
- name: CSI_ENDPOINT
5449
value: unix:///var/lib/kubelet/plugins/manila.csi.openstack.org/csi.sock
5550
- name: FWD_CSI_ENDPOINT

assets/overlays/openstack-manila/patches/controller_add_driver.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,13 @@ spec:
4242
- --provide-node-service=false
4343
- --v=${LOG_LEVEL}
4444
- --cluster-id=${CLUSTER_ID}
45-
- --nodeid=$(NODE_ID)
4645
- --endpoint=$(CSI_ENDPOINT)
4746
- --drivername=$(DRIVER_NAME)
4847
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
4948
- --fwdendpoint=$(FWD_CSI_ENDPOINT)
5049
env:
5150
- name: DRIVER_NAME
5251
value: manila.csi.openstack.org
53-
- name: NODE_ID
54-
valueFrom:
55-
fieldRef:
56-
fieldPath: spec.nodeName
5752
- name: CSI_ENDPOINT
5853
value: unix:///plugin/csi.sock
5954
- name: MANILA_SHARE_PROTO
@@ -88,9 +83,9 @@ spec:
8883
image: ${NFS_DRIVER_IMAGE}
8984
imagePullPolicy: IfNotPresent
9085
args:
91-
- "--nodeid=$(NODE_ID)"
92-
- "--endpoint=unix://plugin/csi-nfs.sock"
93-
- "--mount-permissions=0777"
86+
- --nodeid=$(NODE_ID)
87+
- --endpoint=unix://plugin/csi-nfs.sock
88+
- --mount-permissions=0777
9489
env:
9590
- name: NODE_ID
9691
valueFrom:

assets/overlays/openstack-manila/patches/node_add_driver.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,13 @@ spec:
4040
- "--provide-controller-service=false"
4141
- "--provide-node-service=true"
4242
- --v=${LOG_LEVEL}
43-
- "--nodeid=$(NODE_ID)"
44-
- "--endpoint=$(CSI_ENDPOINT)"
45-
- "--drivername=$(DRIVER_NAME)"
46-
- "--share-protocol-selector=$(MANILA_SHARE_PROTO)"
47-
- "--fwdendpoint=$(FWD_CSI_ENDPOINT)"
43+
- --endpoint=$(CSI_ENDPOINT)
44+
- --drivername=$(DRIVER_NAME)
45+
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
46+
- --fwdendpoint=$(FWD_CSI_ENDPOINT)
4847
env:
4948
- name: DRIVER_NAME
5049
value: manila.csi.openstack.org
51-
- name: NODE_ID
52-
valueFrom:
53-
fieldRef:
54-
fieldPath: spec.nodeName
5550
- name: CSI_ENDPOINT
5651
value: unix:///var/lib/kubelet/plugins/manila.csi.openstack.org/csi.sock
5752
- name: FWD_CSI_ENDPOINT

0 commit comments

Comments
 (0)