Skip to content

Commit

Permalink
openstack-manila: Remove --nodeid parameter
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
stephenfin committed Dec 9, 2024
1 parent c4b3e22 commit fe91592
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
6 changes: 3 additions & 3 deletions assets/overlays/openstack-manila/base/node_nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ spec:
cpu: 10m
args:
- --v=${LOG_LEVEL}
- "--nodeid=$(NODE_ID)"
- "--endpoint=unix://plugin/csi.sock"
- "--mount-permissions=0777"
- --nodeid=$(NODE_ID)
- --endpoint=unix://plugin/csi.sock
- --mount-permissions=0777
env:
- name: NODE_ID
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ spec:
- args:
- --v=${LOG_LEVEL}
- --cluster-id=${CLUSTER_ID}
- --nodeid=$(NODE_ID)
- --endpoint=$(CSI_ENDPOINT)
- --drivername=$(DRIVER_NAME)
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ spec:
containers:
- args:
- --v=${LOG_LEVEL}
- --nodeid=$(NODE_ID)
- --endpoint=$(CSI_ENDPOINT)
- --drivername=$(DRIVER_NAME)
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ spec:
- args:
- --v=${LOG_LEVEL}
- --cluster-id=${CLUSTER_ID}
- --nodeid=$(NODE_ID)
- --endpoint=$(CSI_ENDPOINT)
- --drivername=$(DRIVER_NAME)
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ spec:
containers:
- args:
- --v=${LOG_LEVEL}
- --nodeid=$(NODE_ID)
- --endpoint=$(CSI_ENDPOINT)
- --drivername=$(DRIVER_NAME)
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ spec:
args:
- --v=${LOG_LEVEL}
- --cluster-id=${CLUSTER_ID}
- --nodeid=$(NODE_ID)
- --endpoint=$(CSI_ENDPOINT)
- --drivername=$(DRIVER_NAME)
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
Expand Down Expand Up @@ -86,9 +85,9 @@ spec:
image: ${NFS_DRIVER_IMAGE}
imagePullPolicy: IfNotPresent
args:
- "--nodeid=$(NODE_ID)"
- "--endpoint=unix://plugin/csi-nfs.sock"
- "--mount-permissions=0777"
- --nodeid=$(NODE_ID)
- --endpoint=unix://plugin/csi-nfs.sock
- --mount-permissions=0777
env:
- name: NODE_ID
valueFrom:
Expand Down
9 changes: 4 additions & 5 deletions assets/overlays/openstack-manila/patches/node_add_driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ spec:
imagePullPolicy: IfNotPresent
args:
- --v=${LOG_LEVEL}
- "--nodeid=$(NODE_ID)"
- "--endpoint=$(CSI_ENDPOINT)"
- "--drivername=$(DRIVER_NAME)"
- "--share-protocol-selector=$(MANILA_SHARE_PROTO)"
- "--fwdendpoint=$(FWD_CSI_ENDPOINT)"
- --endpoint=$(CSI_ENDPOINT)
- --drivername=$(DRIVER_NAME)
- --share-protocol-selector=$(MANILA_SHARE_PROTO)
- --fwdendpoint=$(FWD_CSI_ENDPOINT)
env:
- name: DRIVER_NAME
value: manila.csi.openstack.org
Expand Down

0 comments on commit fe91592

Please sign in to comment.