Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
09d3dce3
Commit
09d3dce3
authored
Nov 13, 2018
by
saad-ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CSI client to pick up CSI v1.0.0 changes
parent
9d4810f2
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
95 additions
and
96 deletions
+95
-96
BUILD
pkg/volume/csi/BUILD
+2
-2
csi_attacher.go
pkg/volume/csi/csi_attacher.go
+1
-1
csi_client.go
pkg/volume/csi/csi_client.go
+19
-19
csi_client_test.go
pkg/volume/csi/csi_client_test.go
+17
-17
csi_mounter_test.go
pkg/volume/csi/csi_mounter_test.go
+34
-35
BUILD
pkg/volume/csi/fake/BUILD
+1
-1
fake_client.go
pkg/volume/csi/fake/fake_client.go
+17
-17
BUILD
pkg/volume/csi/nodeinfomanager/BUILD
+2
-2
nodeinfomanager.go
pkg/volume/csi/nodeinfomanager/nodeinfomanager.go
+1
-1
nodeinfomanager_test.go
pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go
+1
-1
No files found.
pkg/volume/csi/BUILD
View file @
09d3dce3
...
...
@@ -30,7 +30,7 @@ go_library(
"//staging/src/k8s.io/csi-api/pkg/client/informers/externalversions:go_default_library",
"//staging/src/k8s.io/csi-api/pkg/client/informers/externalversions/csi/v1alpha1:go_default_library",
"//staging/src/k8s.io/csi-api/pkg/client/listers/csi/v1alpha1:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi
/v0
:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi:go_default_library",
"//vendor/google.golang.org/grpc:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
...
...
@@ -69,7 +69,7 @@ go_test(
"//staging/src/k8s.io/client-go/util/testing:go_default_library",
"//staging/src/k8s.io/csi-api/pkg/apis/csi/v1alpha1:go_default_library",
"//staging/src/k8s.io/csi-api/pkg/client/clientset/versioned/fake:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi
/v0
:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
)
...
...
pkg/volume/csi/csi_attacher.go
View file @
09d3dce3
...
...
@@ -29,7 +29,7 @@ import (
"k8s.io/klog"
csipb
"github.com/container-storage-interface/spec/lib/go/csi
/v0
"
csipb
"github.com/container-storage-interface/spec/lib/go/csi"
"k8s.io/api/core/v1"
storage
"k8s.io/api/storage/v1beta1"
apierrs
"k8s.io/apimachinery/pkg/api/errors"
...
...
pkg/volume/csi/csi_client.go
View file @
09d3dce3
...
...
@@ -24,7 +24,7 @@ import (
"net"
"time"
csipb
"github.com/container-storage-interface/spec/lib/go/csi
/v0
"
csipb
"github.com/container-storage-interface/spec/lib/go/csi"
"google.golang.org/grpc"
api
"k8s.io/api/core/v1"
utilfeature
"k8s.io/apiserver/pkg/util/feature"
...
...
@@ -46,8 +46,8 @@ type csiClient interface {
targetPath
string
,
accessMode
api
.
PersistentVolumeAccessMode
,
volumeInfo
map
[
string
]
string
,
volume
Attribs
map
[
string
]
string
,
nodePublishS
ecrets
map
[
string
]
string
,
volume
Context
map
[
string
]
string
,
s
ecrets
map
[
string
]
string
,
fsType
string
,
mountOptions
[]
string
,
)
error
...
...
@@ -62,8 +62,8 @@ type csiClient interface {
stagingTargetPath
string
,
fsType
string
,
accessMode
api
.
PersistentVolumeAccessMode
,
nodeStageS
ecrets
map
[
string
]
string
,
volume
Attribs
map
[
string
]
string
,
s
ecrets
map
[
string
]
string
,
volume
Context
map
[
string
]
string
,
)
error
NodeUnstageVolume
(
ctx
context
.
Context
,
volID
,
stagingTargetPath
string
)
error
NodeGetCapabilities
(
ctx
context
.
Context
)
([]
*
csipb
.
NodeServiceCapability
,
error
)
...
...
@@ -136,8 +136,8 @@ func (c *csiDriverClient) NodePublishVolume(
targetPath
string
,
accessMode
api
.
PersistentVolumeAccessMode
,
volumeInfo
map
[
string
]
string
,
volume
Attribs
map
[
string
]
string
,
nodePublishS
ecrets
map
[
string
]
string
,
volume
Context
map
[
string
]
string
,
s
ecrets
map
[
string
]
string
,
fsType
string
,
mountOptions
[]
string
,
)
error
{
...
...
@@ -156,12 +156,12 @@ func (c *csiDriverClient) NodePublishVolume(
defer
closer
.
Close
()
req
:=
&
csipb
.
NodePublishVolumeRequest
{
VolumeId
:
volID
,
TargetPath
:
targetPath
,
Readonly
:
readOnly
,
Publish
Info
:
volumeInfo
,
Volume
Attributes
:
volumeAttribs
,
NodePublishSecrets
:
nodePublishS
ecrets
,
VolumeId
:
volID
,
TargetPath
:
targetPath
,
Readonly
:
readOnly
,
Publish
Context
:
volumeInfo
,
Volume
Context
:
volumeContext
,
Secrets
:
s
ecrets
,
VolumeCapability
:
&
csipb
.
VolumeCapability
{
AccessMode
:
&
csipb
.
VolumeCapability_AccessMode
{
Mode
:
asCSIAccessMode
(
accessMode
),
...
...
@@ -215,12 +215,12 @@ func (c *csiDriverClient) NodeUnpublishVolume(ctx context.Context, volID string,
func
(
c
*
csiDriverClient
)
NodeStageVolume
(
ctx
context
.
Context
,
volID
string
,
publish
Info
map
[
string
]
string
,
publish
Context
map
[
string
]
string
,
stagingTargetPath
string
,
fsType
string
,
accessMode
api
.
PersistentVolumeAccessMode
,
nodeStageS
ecrets
map
[
string
]
string
,
volume
Attribs
map
[
string
]
string
,
s
ecrets
map
[
string
]
string
,
volume
Context
map
[
string
]
string
,
)
error
{
klog
.
V
(
4
)
.
Info
(
log
(
"calling NodeStageVolume rpc [volid=%s,staging_target_path=%s]"
,
volID
,
stagingTargetPath
))
if
volID
==
""
{
...
...
@@ -238,15 +238,15 @@ func (c *csiDriverClient) NodeStageVolume(ctx context.Context,
req
:=
&
csipb
.
NodeStageVolumeRequest
{
VolumeId
:
volID
,
Publish
Info
:
publishInfo
,
Publish
Context
:
publishContext
,
StagingTargetPath
:
stagingTargetPath
,
VolumeCapability
:
&
csipb
.
VolumeCapability
{
AccessMode
:
&
csipb
.
VolumeCapability_AccessMode
{
Mode
:
asCSIAccessMode
(
accessMode
),
},
},
NodeStageSecrets
:
nodeStageS
ecrets
,
Volume
Attributes
:
volumeAttribs
,
Secrets
:
s
ecrets
,
Volume
Context
:
volumeContext
,
}
if
fsType
==
fsTypeBlockName
{
...
...
pkg/volume/csi/csi_client_test.go
View file @
09d3dce3
...
...
@@ -23,7 +23,7 @@ import (
"reflect"
"testing"
csipb
"github.com/container-storage-interface/spec/lib/go/csi
/v0
"
csipb
"github.com/container-storage-interface/spec/lib/go/csi"
api
"k8s.io/api/core/v1"
"k8s.io/kubernetes/pkg/volume/csi/fake"
)
...
...
@@ -57,19 +57,19 @@ func (c *fakeCsiDriverClient) NodePublishVolume(
targetPath
string
,
accessMode
api
.
PersistentVolumeAccessMode
,
volumeInfo
map
[
string
]
string
,
volume
Attribs
map
[
string
]
string
,
nodePublishS
ecrets
map
[
string
]
string
,
volume
Context
map
[
string
]
string
,
s
ecrets
map
[
string
]
string
,
fsType
string
,
mountOptions
[]
string
,
)
error
{
c
.
t
.
Log
(
"calling fake.NodePublishVolume..."
)
req
:=
&
csipb
.
NodePublishVolumeRequest
{
VolumeId
:
volID
,
TargetPath
:
targetPath
,
Readonly
:
readOnly
,
Publish
Info
:
volumeInfo
,
Volume
Attributes
:
volumeAttribs
,
NodePublishSecrets
:
nodePublishS
ecrets
,
VolumeId
:
volID
,
TargetPath
:
targetPath
,
Readonly
:
readOnly
,
Publish
Context
:
volumeInfo
,
Volume
Context
:
volumeContext
,
Secrets
:
s
ecrets
,
VolumeCapability
:
&
csipb
.
VolumeCapability
{
AccessMode
:
&
csipb
.
VolumeCapability_AccessMode
{
Mode
:
asCSIAccessMode
(
accessMode
),
...
...
@@ -100,17 +100,17 @@ func (c *fakeCsiDriverClient) NodeUnpublishVolume(ctx context.Context, volID str
func
(
c
*
fakeCsiDriverClient
)
NodeStageVolume
(
ctx
context
.
Context
,
volID
string
,
publish
Info
map
[
string
]
string
,
publish
Context
map
[
string
]
string
,
stagingTargetPath
string
,
fsType
string
,
accessMode
api
.
PersistentVolumeAccessMode
,
nodeStageS
ecrets
map
[
string
]
string
,
volume
Attribs
map
[
string
]
string
,
s
ecrets
map
[
string
]
string
,
volume
Context
map
[
string
]
string
,
)
error
{
c
.
t
.
Log
(
"calling fake.NodeStageVolume..."
)
req
:=
&
csipb
.
NodeStageVolumeRequest
{
VolumeId
:
volID
,
Publish
Info
:
publishInfo
,
Publish
Context
:
publishContext
,
StagingTargetPath
:
stagingTargetPath
,
VolumeCapability
:
&
csipb
.
VolumeCapability
{
AccessMode
:
&
csipb
.
VolumeCapability_AccessMode
{
...
...
@@ -122,8 +122,8 @@ func (c *fakeCsiDriverClient) NodeStageVolume(ctx context.Context,
},
},
},
NodeStageSecrets
:
nodeStageS
ecrets
,
Volume
Attributes
:
volumeAttribs
,
Secrets
:
s
ecrets
,
Volume
Context
:
volumeContext
,
}
_
,
err
:=
c
.
nodeClient
.
NodeStageVolume
(
ctx
,
req
)
...
...
@@ -321,7 +321,7 @@ func TestClientNodeStageVolume(t *testing.T) {
volID
string
stagingTargetPath
string
fsType
string
secret
map
[
string
]
string
secret
s
map
[
string
]
string
mustFail
bool
err
error
}{
...
...
@@ -351,7 +351,7 @@ func TestClientNodeStageVolume(t *testing.T) {
tc
.
stagingTargetPath
,
tc
.
fsType
,
api
.
ReadWriteOnce
,
tc
.
secret
,
tc
.
secret
s
,
map
[
string
]
string
{
"attr0"
:
"val0"
},
)
checkErr
(
t
,
tc
.
mustFail
,
err
)
...
...
pkg/volume/csi/csi_mounter_test.go
View file @
09d3dce3
...
...
@@ -98,47 +98,46 @@ func TestMounterGetPath(t *testing.T) {
func
MounterSetUpTests
(
t
*
testing
.
T
,
podInfoEnabled
bool
)
{
defer
utilfeaturetesting
.
SetFeatureGateDuringTest
(
t
,
utilfeature
.
DefaultFeatureGate
,
features
.
CSIDriverRegistry
,
podInfoEnabled
)()
tests
:=
[]
struct
{
name
string
driver
string
attributes
map
[
string
]
string
expectedAttributes
map
[
string
]
string
name
string
driver
string
volumeContext
map
[
string
]
string
expectedVolumeContext
map
[
string
]
string
}{
{
name
:
"no pod info"
,
driver
:
"no-info"
,
attributes
:
nil
,
expected
Attributes
:
nil
,
name
:
"no pod info"
,
driver
:
"no-info"
,
volumeContext
:
nil
,
expected
VolumeContext
:
nil
,
},
{
name
:
"no CSIDriver -> no pod info"
,
driver
:
"unknown-driver"
,
attributes
:
nil
,
expected
Attributes
:
nil
,
name
:
"no CSIDriver -> no pod info"
,
driver
:
"unknown-driver"
,
volumeContext
:
nil
,
expected
VolumeContext
:
nil
,
},
{
name
:
"CSIDriver with PodInfoRequiredOnMount=nil -> no pod info"
,
driver
:
"nil"
,
attributes
:
nil
,
expected
Attributes
:
nil
,
name
:
"CSIDriver with PodInfoRequiredOnMount=nil -> no pod info"
,
driver
:
"nil"
,
volumeContext
:
nil
,
expected
VolumeContext
:
nil
,
},
{
name
:
"no pod info -> keep existing attributes
"
,
driver
:
"no-info"
,
attributes
:
map
[
string
]
string
{
"foo"
:
"bar"
},
expected
Attributes
:
map
[
string
]
string
{
"foo"
:
"bar"
},
name
:
"no pod info -> keep existing volumeContext
"
,
driver
:
"no-info"
,
volumeContext
:
map
[
string
]
string
{
"foo"
:
"bar"
},
expected
VolumeContext
:
map
[
string
]
string
{
"foo"
:
"bar"
},
},
{
name
:
"add pod info"
,
driver
:
"info"
,
attributes
:
nil
,
expected
Attributes
:
map
[
string
]
string
{
"csi.storage.k8s.io/pod.uid"
:
"test-pod"
,
"csi.storage.k8s.io/serviceAccount.name"
:
"test-service-account"
,
"csi.storage.k8s.io/pod.name"
:
"test-pod"
,
"csi.storage.k8s.io/pod.namespace"
:
"test-ns"
},
name
:
"add pod info"
,
driver
:
"info"
,
volumeContext
:
nil
,
expected
VolumeContext
:
map
[
string
]
string
{
"csi.storage.k8s.io/pod.uid"
:
"test-pod"
,
"csi.storage.k8s.io/serviceAccount.name"
:
"test-service-account"
,
"csi.storage.k8s.io/pod.name"
:
"test-pod"
,
"csi.storage.k8s.io/pod.namespace"
:
"test-ns"
},
},
{
name
:
"add pod info -> keep existing attributes
"
,
driver
:
"info"
,
attributes
:
map
[
string
]
string
{
"foo"
:
"bar"
},
expected
Attributes
:
map
[
string
]
string
{
"foo"
:
"bar"
,
"csi.storage.k8s.io/pod.uid"
:
"test-pod"
,
"csi.storage.k8s.io/serviceAccount.name"
:
"test-service-account"
,
"csi.storage.k8s.io/pod.name"
:
"test-pod"
,
"csi.storage.k8s.io/pod.namespace"
:
"test-ns"
},
name
:
"add pod info -> keep existing volumeContext
"
,
driver
:
"info"
,
volumeContext
:
map
[
string
]
string
{
"foo"
:
"bar"
},
expected
VolumeContext
:
map
[
string
]
string
{
"foo"
:
"bar"
,
"csi.storage.k8s.io/pod.uid"
:
"test-pod"
,
"csi.storage.k8s.io/serviceAccount.name"
:
"test-service-account"
,
"csi.storage.k8s.io/pod.name"
:
"test-pod"
,
"csi.storage.k8s.io/pod.namespace"
:
"test-ns"
},
},
}
...
...
@@ -163,7 +162,7 @@ func MounterSetUpTests(t *testing.T, podInfoEnabled bool) {
}
pv
:=
makeTestPV
(
"test-pv"
,
10
,
test
.
driver
,
testVol
)
pv
.
Spec
.
CSI
.
VolumeAttributes
=
test
.
attributes
pv
.
Spec
.
CSI
.
VolumeAttributes
=
test
.
volumeContext
pv
.
Spec
.
MountOptions
=
[]
string
{
"foo=bar"
,
"baz=qux"
}
pvName
:=
pv
.
GetName
()
...
...
@@ -245,13 +244,13 @@ func MounterSetUpTests(t *testing.T, podInfoEnabled bool) {
t
.
Errorf
(
"csi server expected mount options %v, got %v"
,
pv
.
Spec
.
MountOptions
,
vol
.
MountFlags
)
}
if
podInfoEnabled
{
if
!
reflect
.
DeepEqual
(
vol
.
Attributes
,
test
.
expectedAttributes
)
{
t
.
Errorf
(
"csi server expected
attributes %+v, got %+v"
,
test
.
expectedAttributes
,
vol
.
Attributes
)
if
!
reflect
.
DeepEqual
(
vol
.
VolumeContext
,
test
.
expectedVolumeContext
)
{
t
.
Errorf
(
"csi server expected
volumeContext %+v, got %+v"
,
test
.
expectedVolumeContext
,
vol
.
VolumeContext
)
}
}
else
{
// CSIPodInfo feature is disabled, we expect no modifications to
attributes
.
if
!
reflect
.
DeepEqual
(
vol
.
Attributes
,
test
.
attributes
)
{
t
.
Errorf
(
"csi server expected
attributes %+v, got %+v"
,
test
.
attributes
,
vol
.
Attributes
)
// CSIPodInfo feature is disabled, we expect no modifications to
volumeContext
.
if
!
reflect
.
DeepEqual
(
vol
.
VolumeContext
,
test
.
volumeContext
)
{
t
.
Errorf
(
"csi server expected
volumeContext %+v, got %+v"
,
test
.
volumeContext
,
vol
.
VolumeContext
)
}
}
})
...
...
pkg/volume/csi/fake/BUILD
View file @
09d3dce3
...
...
@@ -9,7 +9,7 @@ go_library(
importpath = "k8s.io/kubernetes/pkg/volume/csi/fake",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/container-storage-interface/spec/lib/go/csi
/v0
:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi:go_default_library",
"//vendor/google.golang.org/grpc:go_default_library",
],
)
...
...
pkg/volume/csi/fake/fake_client.go
View file @
09d3dce3
...
...
@@ -23,7 +23,7 @@ import (
"google.golang.org/grpc"
csipb
"github.com/container-storage-interface/spec/lib/go/csi
/v0
"
csipb
"github.com/container-storage-interface/spec/lib/go/csi"
)
// IdentityClient is a CSI identity client used for testing
...
...
@@ -57,9 +57,9 @@ func (f *IdentityClient) Probe(ctx context.Context, in *csipb.ProbeRequest, opts
}
type
CSIVolume
struct
{
Attributes
map
[
string
]
string
Path
string
MountFlags
[]
string
VolumeContext
map
[
string
]
string
Path
string
MountFlags
[]
string
}
// NodeClient returns CSI node client
...
...
@@ -99,10 +99,10 @@ func (f *NodeClient) GetNodeStagedVolumes() map[string]CSIVolume {
return
f
.
nodeStagedVolumes
}
func
(
f
*
NodeClient
)
AddNodeStagedVolume
(
volID
,
deviceMountPath
string
,
attributes
map
[
string
]
string
)
{
func
(
f
*
NodeClient
)
AddNodeStagedVolume
(
volID
,
deviceMountPath
string
,
volumeContext
map
[
string
]
string
)
{
f
.
nodeStagedVolumes
[
volID
]
=
CSIVolume
{
Path
:
deviceMountPath
,
Attributes
:
attributes
,
Path
:
deviceMountPath
,
VolumeContext
:
volumeContext
,
}
}
...
...
@@ -125,9 +125,9 @@ func (f *NodeClient) NodePublishVolume(ctx context.Context, req *csipb.NodePubli
return
nil
,
errors
.
New
(
"invalid fstype"
)
}
f
.
nodePublishedVolumes
[
req
.
GetVolumeId
()]
=
CSIVolume
{
Path
:
req
.
GetTargetPath
(),
Attributes
:
req
.
GetVolumeAttributes
(),
MountFlags
:
req
.
GetVolumeCapability
()
.
GetMount
()
.
MountFlags
,
Path
:
req
.
GetTargetPath
(),
VolumeContext
:
req
.
GetVolumeContext
(),
MountFlags
:
req
.
GetVolumeCapability
()
.
GetMount
()
.
MountFlags
,
}
return
&
csipb
.
NodePublishVolumeResponse
{},
nil
}
...
...
@@ -172,8 +172,8 @@ func (f *NodeClient) NodeStageVolume(ctx context.Context, req *csipb.NodeStageVo
}
f
.
nodeStagedVolumes
[
req
.
GetVolumeId
()]
=
CSIVolume
{
Path
:
req
.
GetStagingTargetPath
(),
Attributes
:
req
.
GetVolumeAttributes
(),
Path
:
req
.
GetStagingTargetPath
(),
VolumeContext
:
req
.
GetVolumeContext
(),
}
return
&
csipb
.
NodeStageVolumeResponse
{},
nil
}
...
...
@@ -195,11 +195,6 @@ func (f *NodeClient) NodeUnstageVolume(ctx context.Context, req *csipb.NodeUnsta
return
&
csipb
.
NodeUnstageVolumeResponse
{},
nil
}
// NodeGetId implements method
func
(
f
*
NodeClient
)
NodeGetId
(
ctx
context
.
Context
,
in
*
csipb
.
NodeGetIdRequest
,
opts
...
grpc
.
CallOption
)
(
*
csipb
.
NodeGetIdResponse
,
error
)
{
return
nil
,
nil
}
// NodeGetId implements csi method
func
(
f
*
NodeClient
)
NodeGetInfo
(
ctx
context
.
Context
,
in
*
csipb
.
NodeGetInfoRequest
,
opts
...
grpc
.
CallOption
)
(
*
csipb
.
NodeGetInfoResponse
,
error
)
{
if
f
.
nextErr
!=
nil
{
...
...
@@ -227,6 +222,11 @@ func (f *NodeClient) NodeGetCapabilities(ctx context.Context, in *csipb.NodeGetC
return
nil
,
nil
}
// NodeGetVolumeStats implements csi method
func
(
f
*
NodeClient
)
NodeGetVolumeStats
(
ctx
context
.
Context
,
in
*
csipb
.
NodeGetVolumeStatsRequest
,
opts
...
grpc
.
CallOption
)
(
*
csipb
.
NodeGetVolumeStatsResponse
,
error
)
{
return
nil
,
nil
}
// ControllerClient represents a CSI Controller client
type
ControllerClient
struct
{
nextCapabilities
[]
*
csipb
.
ControllerServiceCapability
...
...
pkg/volume/csi/nodeinfomanager/BUILD
View file @
09d3dce3
...
...
@@ -19,7 +19,7 @@ go_library(
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
"//staging/src/k8s.io/client-go/util/retry:go_default_library",
"//staging/src/k8s.io/csi-api/pkg/apis/csi/v1alpha1:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi
/v0
:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
)
...
...
@@ -61,7 +61,7 @@ go_test(
"//staging/src/k8s.io/client-go/util/testing:go_default_library",
"//staging/src/k8s.io/csi-api/pkg/apis/csi/v1alpha1:go_default_library",
"//staging/src/k8s.io/csi-api/pkg/client/clientset/versioned/fake:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi
/v0
:go_default_library",
"//vendor/github.com/container-storage-interface/spec/lib/go/csi:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
],
)
pkg/volume/csi/nodeinfomanager/nodeinfomanager.go
View file @
09d3dce3
...
...
@@ -23,7 +23,7 @@ import (
"fmt"
"strings"
csipb
"github.com/container-storage-interface/spec/lib/go/csi
/v0
"
csipb
"github.com/container-storage-interface/spec/lib/go/csi"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/resource"
...
...
pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go
View file @
09d3dce3
...
...
@@ -21,7 +21,7 @@ import (
"fmt"
"testing"
"github.com/container-storage-interface/spec/lib/go/csi
/v0
"
"github.com/container-storage-interface/spec/lib/go/csi"
"github.com/stretchr/testify/assert"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment