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
d80b4383
Commit
d80b4383
authored
May 12, 2015
by
Eric Paris
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8059 from pmorie/volume-cleanup
NFS plugin should use correct mounter
parents
1cf52e3b
e2dd95a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
nfs.go
pkg/volume/nfs/nfs.go
+6
-7
No files found.
pkg/volume/nfs/nfs.go
View file @
d80b4383
...
@@ -30,12 +30,11 @@ import (
...
@@ -30,12 +30,11 @@ import (
// This is the primary entrypoint for volume plugins.
// This is the primary entrypoint for volume plugins.
func
ProbeVolumePlugins
()
[]
volume
.
VolumePlugin
{
func
ProbeVolumePlugins
()
[]
volume
.
VolumePlugin
{
return
[]
volume
.
VolumePlugin
{
&
nfsPlugin
{
nil
,
mount
.
New
()
}}
return
[]
volume
.
VolumePlugin
{
&
nfsPlugin
{
nil
}}
}
}
type
nfsPlugin
struct
{
type
nfsPlugin
struct
{
host
volume
.
VolumeHost
host
volume
.
VolumeHost
mounter
mount
.
Interface
}
}
var
_
volume
.
VolumePlugin
=
&
nfsPlugin
{}
var
_
volume
.
VolumePlugin
=
&
nfsPlugin
{}
...
@@ -64,8 +63,8 @@ func (plugin *nfsPlugin) GetAccessModes() []api.AccessModeType {
...
@@ -64,8 +63,8 @@ func (plugin *nfsPlugin) GetAccessModes() []api.AccessModeType {
}
}
}
}
func
(
plugin
*
nfsPlugin
)
NewBuilder
(
spec
*
volume
.
Spec
,
pod
*
api
.
Pod
,
_
volume
.
VolumeOptions
,
_
mount
.
Interface
)
(
volume
.
Builder
,
error
)
{
func
(
plugin
*
nfsPlugin
)
NewBuilder
(
spec
*
volume
.
Spec
,
pod
*
api
.
Pod
,
_
volume
.
VolumeOptions
,
mounter
mount
.
Interface
)
(
volume
.
Builder
,
error
)
{
return
plugin
.
newBuilderInternal
(
spec
,
pod
,
plugin
.
mounter
)
return
plugin
.
newBuilderInternal
(
spec
,
pod
,
mounter
)
}
}
func
(
plugin
*
nfsPlugin
)
newBuilderInternal
(
spec
*
volume
.
Spec
,
pod
*
api
.
Pod
,
mounter
mount
.
Interface
)
(
volume
.
Builder
,
error
)
{
func
(
plugin
*
nfsPlugin
)
newBuilderInternal
(
spec
*
volume
.
Spec
,
pod
*
api
.
Pod
,
mounter
mount
.
Interface
)
(
volume
.
Builder
,
error
)
{
...
@@ -80,8 +79,8 @@ func (plugin *nfsPlugin) newBuilderInternal(spec *volume.Spec, pod *api.Pod, mou
...
@@ -80,8 +79,8 @@ func (plugin *nfsPlugin) newBuilderInternal(spec *volume.Spec, pod *api.Pod, mou
},
nil
},
nil
}
}
func
(
plugin
*
nfsPlugin
)
NewCleaner
(
volName
string
,
podUID
types
.
UID
,
_
mount
.
Interface
)
(
volume
.
Cleaner
,
error
)
{
func
(
plugin
*
nfsPlugin
)
NewCleaner
(
volName
string
,
podUID
types
.
UID
,
mounter
mount
.
Interface
)
(
volume
.
Cleaner
,
error
)
{
return
plugin
.
newCleanerInternal
(
volName
,
podUID
,
plugin
.
mounter
)
return
plugin
.
newCleanerInternal
(
volName
,
podUID
,
mounter
)
}
}
func
(
plugin
*
nfsPlugin
)
newCleanerInternal
(
volName
string
,
podUID
types
.
UID
,
mounter
mount
.
Interface
)
(
volume
.
Cleaner
,
error
)
{
func
(
plugin
*
nfsPlugin
)
newCleanerInternal
(
volName
string
,
podUID
types
.
UID
,
mounter
mount
.
Interface
)
(
volume
.
Cleaner
,
error
)
{
...
...
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