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
eb35cee9
Commit
eb35cee9
authored
Aug 16, 2017
by
jolestar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused command waitfordetach from flex volume driver
parent
637cd7d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
detacher.go
pkg/volume/flexvolume/detacher.go
+0
-13
driver-call.go
pkg/volume/flexvolume/driver-call.go
+0
-1
No files found.
pkg/volume/flexvolume/detacher.go
View file @
eb35cee9
...
@@ -19,7 +19,6 @@ package flexvolume
...
@@ -19,7 +19,6 @@ package flexvolume
import
(
import
(
"fmt"
"fmt"
"os"
"os"
"time"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
...
@@ -47,18 +46,6 @@ func (d *flexVolumeDetacher) Detach(volumeName string, hostName types.NodeName)
...
@@ -47,18 +46,6 @@ func (d *flexVolumeDetacher) Detach(volumeName string, hostName types.NodeName)
return
err
return
err
}
}
// WaitForDetach is part of the volume.Detacher interface.
func
(
d
*
flexVolumeDetacher
)
WaitForDetach
(
devicePath
string
,
timeout
time
.
Duration
)
error
{
call
:=
d
.
plugin
.
NewDriverCallWithTimeout
(
waitForDetachCmd
,
timeout
)
call
.
Append
(
devicePath
)
_
,
err
:=
call
.
Run
()
if
isCmdNotSupportedErr
(
err
)
{
return
(
*
detacherDefaults
)(
d
)
.
WaitForDetach
(
devicePath
,
timeout
)
}
return
err
}
// UnmountDevice is part of the volume.Detacher interface.
// UnmountDevice is part of the volume.Detacher interface.
func
(
d
*
flexVolumeDetacher
)
UnmountDevice
(
deviceMountPath
string
)
error
{
func
(
d
*
flexVolumeDetacher
)
UnmountDevice
(
deviceMountPath
string
)
error
{
...
...
pkg/volume/flexvolume/driver-call.go
View file @
eb35cee9
...
@@ -39,7 +39,6 @@ const (
...
@@ -39,7 +39,6 @@ const (
mountDeviceCmd
=
"mountdevice"
mountDeviceCmd
=
"mountdevice"
detachCmd
=
"detach"
detachCmd
=
"detach"
waitForDetachCmd
=
"waitfordetach"
unmountDeviceCmd
=
"unmountdevice"
unmountDeviceCmd
=
"unmountdevice"
mountCmd
=
"mount"
mountCmd
=
"mount"
...
...
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