mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-09-10 09:29:55 +00:00
fix: update go mod
1. upgrade go version from v1.14 to v.1.19 2. upgrade csi_spec from v1.5.0 to v1.7.0 3. upgrade golang.org/x/net from v0.4.0 to v0.5.0 4. upgrade google.golang.org/grpc from v1.49.0 to v1.51.0 5. upgrade klog from v1.0 to v2.80.1 6. upgrade k8s.io/utils from 2022 to 2023 7. remove logrus Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
This commit is contained in:
@@ -26,9 +26,8 @@ import (
|
||||
|
||||
"github.com/kubernetes-csi/csi-driver-nvmf/pkg/utils"
|
||||
"github.com/kubernetes-csi/csi-lib-utils/protosanitizer"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"google.golang.org/grpc"
|
||||
"k8s.io/klog"
|
||||
"k8s.io/klog/v2"
|
||||
)
|
||||
|
||||
func waitForPathToExist(devicePath string, maxRetries, intervalSeconds int, deviceTransport string) (bool, error) {
|
||||
@@ -73,7 +72,7 @@ func GetDeviceNameByVolumeID(volumeID string) (deviceName string, err error) {
|
||||
if !strings.HasPrefix(resolved, "/dev") {
|
||||
return "", fmt.Errorf("resolved symlink for %q was unexpected: %q", volumeLinkPath, resolved)
|
||||
}
|
||||
log.Infof("Device Link Info: %s link to %s", volumeLinkPath, resolved)
|
||||
klog.Infof("Device Link Info: %s link to %s", volumeLinkPath, resolved)
|
||||
tmp := strings.Split(resolved, "/")
|
||||
return tmp[len(tmp)-1], nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user