Skip to content

Commit cfb1567

Browse files
authored
Reading node instance ID from node spec provider ID (#116)
* Reading node instance ID from node spec provider ID * Cleanup supported by csi-driver-registrar, removing manual cleanup
1 parent 7a5d8ca commit cfb1567

File tree

6 files changed

+31
-17
lines changed

6 files changed

+31
-17
lines changed

deploy/kubernetes/driver/kubernetes/manifests/node-server.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ spec:
3535
- "--v=5"
3636
- "--csi-address=$(ADDRESS)"
3737
- "--kubelet-registration-path=$(DRIVER_REGISTRATION_SOCK)"
38-
lifecycle:
39-
preStop:
40-
exec:
41-
command: ["/bin/sh", "-c", "rm -rf /registration/vpc.block.csi.ibm.io /registration/vpc.block.csi.ibm.io-reg.sock"]
4238
env:
4339
- name: ADDRESS
4440
value: /csi/csi.sock

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/kubernetes-sigs/ibm-vpc-block-csi-driver
33
go 1.18
44

55
require (
6-
github.com/IBM/ibm-csi-common v1.1.4
6+
github.com/IBM/ibm-csi-common v1.1.5
77
github.com/IBM/ibmcloud-volume-interface v1.1.2
88
github.com/IBM/ibmcloud-volume-vpc v1.1.3
99
github.com/IBM/secret-utils-lib v1.1.2

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.6.7 h1:eHgfQl6IeSmzWUyiSi13CvoFYsovoyq
3939
github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.6.7/go.mod h1:RiUvKuHKTBmBApDMUQzBL14pQUGKcx/IioKQPIcRQjs=
4040
github.com/IBM/go-sdk-core/v5 v5.9.1 h1:06pXbD9Rgmqqe2HA5YAeQbB4eYRRFgIoOT+Kh3cp1zo=
4141
github.com/IBM/go-sdk-core/v5 v5.9.1/go.mod h1:axE2JrRq79gIJTjKPBwV6gWHswvVptBjbcvvCPIxARM=
42-
github.com/IBM/ibm-csi-common v1.1.4 h1:LXFFnzEeLy9/eUHBS6U6JtcVlxQnXhM2HWZVZJlxcTM=
43-
github.com/IBM/ibm-csi-common v1.1.4/go.mod h1:ylboxxpsAnVxFn35fBfhu6VFnl1YZa2LHgX0hMpujqw=
42+
github.com/IBM/ibm-csi-common v1.1.5 h1:hXCQ9xtO5Or5qhi5J5Ey7tfP0P+WpxPry1+u//z8xaw=
43+
github.com/IBM/ibm-csi-common v1.1.5/go.mod h1:ylboxxpsAnVxFn35fBfhu6VFnl1YZa2LHgX0hMpujqw=
4444
github.com/IBM/ibmcloud-volume-interface v1.1.2 h1:7IByqGhG09a3aycsf3TQn9vkQDncMJYdvpo4hGQAN5A=
4545
github.com/IBM/ibmcloud-volume-interface v1.1.2/go.mod h1:H6bm3Tzq7cjN0De207du/A8mzrirEgxwV89j3ouwCwg=
4646
github.com/IBM/ibmcloud-volume-vpc v1.1.3 h1:nYb45M8xnKz2ae8qnW77OIGTrxVmsKwxbvt71jd/wzw=

vendor/github.com/IBM/ibm-csi-common/pkg/metadata/metadata.go

+21-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/IBM/ibm-csi-common/pkg/utils/constants.go

+6-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ github.com/IBM-Cloud/ibm-cloud-cli-sdk/common/rest
88
# github.com/IBM/go-sdk-core/v5 v5.9.1
99
## explicit; go 1.14
1010
github.com/IBM/go-sdk-core/v5/core
11-
# github.com/IBM/ibm-csi-common v1.1.4
11+
# github.com/IBM/ibm-csi-common v1.1.5
1212
## explicit; go 1.18
1313
github.com/IBM/ibm-csi-common/pkg/ibmcloudprovider
1414
github.com/IBM/ibm-csi-common/pkg/messages

0 commit comments

Comments
 (0)