mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-12 17:30:19 +00:00
cleanup: remove double import of csi spec from nodeserver
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
333548b05c
commit
d11266e255
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user