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
bce708c2
Commit
bce708c2
authored
May 11, 2016
by
saadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify Detach method to take disk name
parent
b1560f36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
kubelet.go
pkg/kubelet/kubelet.go
+2
-1
volume.go
pkg/volume/volume.go
+2
-3
No files found.
pkg/kubelet/kubelet.go
View file @
bce708c2
...
...
@@ -2006,7 +2006,8 @@ func (kl *Kubelet) cleanupOrphanedVolumes(pods []*api.Pod, runningPods []*kubeco
glog
.
Errorf
(
"Could not unmount the global mount for %q: %v"
,
name
,
err
)
}
err
=
detacher
.
Detach
(
refs
[
0
],
kl
.
hostname
)
pdName
:=
path
.
Base
(
refs
[
0
])
err
=
detacher
.
Detach
(
pdName
,
kl
.
hostname
)
if
err
!=
nil
{
glog
.
Errorf
(
"Could not detach volume %q at %q: %v"
,
name
,
volumePath
,
err
)
}
...
...
pkg/volume/volume.go
View file @
bce708c2
...
...
@@ -152,9 +152,8 @@ type Attacher interface {
// Detacher can detach a volume from a node.
type
Detacher
interface
{
// Detach the given volume from the given host.
Detach
(
deviceMountPath
string
,
hostName
string
)
error
// Detach the given device from the given host.
Detach
(
deviceName
,
hostName
string
)
error
// WaitForDetach blocks until the device is detached from this
// node. If the device does not detach within the given timeout
...
...
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