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:
Meinhard Zhou
2023-02-10 17:40:32 +08:00
parent ea5c2acba7
commit 576dccb738
13 changed files with 61 additions and 576 deletions

View File

@@ -21,7 +21,7 @@ import (
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"k8s.io/klog"
"k8s.io/klog/v2"
)
type ControllerServer struct {
@@ -35,8 +35,8 @@ func NewControllerServer(d *driver) *ControllerServer {
}
}
// You should realize your volume provider here, such as requesting the Cloud to create an NVMf block and
// returning specific information to you
// You should realize your volume provider here, such as requesting the Cloud to create an NVMf block and
// returning specific information to you
func (c *ControllerServer) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "CreateVolume should implement by yourself. ")
}