-
Notifications
You must be signed in to change notification settings - Fork 851
Update to csi-proxy v1 APIs #966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6d89302
7d9d6c7
a2261de
4aef531
d1416bc
9c98a43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,10 +22,11 @@ import ( | |
| "context" | ||
| "errors" | ||
| "fmt" | ||
| "strconv" | ||
| "strings" | ||
|
|
||
| diskapi "github.com/kubernetes-csi/csi-proxy/client/api/disk/v1beta2" | ||
| diskclient "github.com/kubernetes-csi/csi-proxy/client/groups/disk/v1beta2" | ||
| diskapi "github.com/kubernetes-csi/csi-proxy/client/api/disk/v1" | ||
| diskclient "github.com/kubernetes-csi/csi-proxy/client/groups/disk/v1" | ||
| "github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/mounter" | ||
| "k8s.io/klog" | ||
| ) | ||
|
|
@@ -49,10 +50,10 @@ func (d *nodeService) findDevicePath(devicePath, volumeID, _ string) (string, er | |
|
|
||
| foundDiskNumber := "" | ||
| for diskNumber, diskID := range diskIDs { | ||
| serialNumber := diskID.Identifiers["serialNumber"] | ||
| serialNumber := diskID.GetSerialNumber() | ||
| cleanVolumeID := strings.ReplaceAll(volumeID, "-", "") | ||
| if strings.Contains(serialNumber, cleanVolumeID) { | ||
| foundDiskNumber = diskNumber | ||
| foundDiskNumber = strconv.Itoa(int(diskNumber)) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was the prior behavior broken?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. previously the map was map[string], now it's map[uint32] |
||
| break | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the mount path have a version in it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is the way csi-proxy works, it drops a socket at a path for each api it serves