Skip to content

Commit 2e6f58d

Browse files
authored
Merge pull request kubernetes#77431 from cwdsuzhou/Add_detacher_assert_check
Add detacher assertion for csiAttacher
2 parents 19ed7fa + 5d89ab2 commit 2e6f58d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/volume/csi/csi_attacher.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ type csiAttacher struct {
5454
// volume.Attacher methods
5555
var _ volume.Attacher = &csiAttacher{}
5656

57+
var _ volume.Detacher = &csiAttacher{}
58+
5759
var _ volume.DeviceMounter = &csiAttacher{}
5860

5961
func (c *csiAttacher) Attach(spec *volume.Spec, nodeName types.NodeName) (string, error) {

0 commit comments

Comments
 (0)