Merge pull request #77431 from cwdsuzhou/Add_detacher_assert_check

Add detacher assertion for csiAttacher
This commit is contained in:
Kubernetes Prow Robot 2019-05-07 09:51:44 -07:00 committed by GitHub
commit 2e6f58ddf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,8 @@ type csiAttacher struct {
// volume.Attacher methods // volume.Attacher methods
var _ volume.Attacher = &csiAttacher{} var _ volume.Attacher = &csiAttacher{}
var _ volume.Detacher = &csiAttacher{}
var _ volume.DeviceMounter = &csiAttacher{} var _ volume.DeviceMounter = &csiAttacher{}
func (c *csiAttacher) Attach(spec *volume.Spec, nodeName types.NodeName) (string, error) { func (c *csiAttacher) Attach(spec *volume.Spec, nodeName types.NodeName) (string, error) {