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
839c4ec7
Unverified
Commit
839c4ec7
authored
Nov 05, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70609 from jianglingxia/jlx201811031314
delete some para no need used in local volume
parents
e40209a4
0c79df1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
local.go
pkg/volume/local/local.go
+1
-1
local_test.go
pkg/volume/local/local_test.go
+0
-1
No files found.
pkg/volume/local/local.go
View file @
839c4ec7
...
@@ -572,7 +572,7 @@ type localVolumeUnmapper struct {
...
@@ -572,7 +572,7 @@ type localVolumeUnmapper struct {
var
_
volume
.
BlockVolumeUnmapper
=
&
localVolumeUnmapper
{}
var
_
volume
.
BlockVolumeUnmapper
=
&
localVolumeUnmapper
{}
// TearDownDevice will undo SetUpDevice procedure. In local PV, all of this already handled by operation_generator.
// TearDownDevice will undo SetUpDevice procedure. In local PV, all of this already handled by operation_generator.
func
(
u
*
localVolumeUnmapper
)
TearDownDevice
(
mapPath
,
devicePath
string
)
error
{
func
(
u
*
localVolumeUnmapper
)
TearDownDevice
(
mapPath
,
_
string
)
error
{
glog
.
V
(
4
)
.
Infof
(
"local: TearDownDevice completed for: %s"
,
mapPath
)
glog
.
V
(
4
)
.
Infof
(
"local: TearDownDevice completed for: %s"
,
mapPath
)
return
nil
return
nil
}
}
...
...
pkg/volume/local/local_test.go
View file @
839c4ec7
...
@@ -41,7 +41,6 @@ const (
...
@@ -41,7 +41,6 @@ const (
testMountPath
=
"pods/poduid/volumes/kubernetes.io~local-volume/pvA"
testMountPath
=
"pods/poduid/volumes/kubernetes.io~local-volume/pvA"
testGlobalPath
=
"plugins/kubernetes.io~local-volume/volumeDevices/pvA"
testGlobalPath
=
"plugins/kubernetes.io~local-volume/volumeDevices/pvA"
testPodPath
=
"pods/poduid/volumeDevices/kubernetes.io~local-volume"
testPodPath
=
"pods/poduid/volumeDevices/kubernetes.io~local-volume"
testNodeName
=
"fakeNodeName"
testBlockFormattingToFSGlobalPath
=
"plugins/kubernetes.io/local-volume/mounts/pvA"
testBlockFormattingToFSGlobalPath
=
"plugins/kubernetes.io/local-volume/mounts/pvA"
)
)
...
...
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