cleanup: remove double import of csi spec from nodeserver

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2020-06-11 13:24:28 +05:30 committed by mergify[bot]
parent 333548b05c
commit d11266e255

View File

@ -25,7 +25,6 @@ import (
"context" "context"
"github.com/container-storage-interface/spec/lib/go/csi" "github.com/container-storage-interface/spec/lib/go/csi"
csipbv1 "github.com/container-storage-interface/spec/lib/go/csi"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"k8s.io/klog" "k8s.io/klog"
@ -164,13 +163,13 @@ func (ns *DefaultNodeServer) NodeGetVolumeStats(ctx context.Context, req *csi.No
Available: available, Available: available,
Total: capacity, Total: capacity,
Used: used, Used: used,
Unit: csipbv1.VolumeUsage_BYTES, Unit: csi.VolumeUsage_BYTES,
}, },
{ {
Available: inodesFree, Available: inodesFree,
Total: inodes, Total: inodes,
Used: inodesUsed, Used: inodesUsed,
Unit: csipbv1.VolumeUsage_INODES, Unit: csi.VolumeUsage_INODES,
}, },
}, },
}, nil }, nil