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
f744b12e
Commit
f744b12e
authored
Aug 22, 2017
by
Jan Safranek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fibre channel: Remove unused exe interface
parent
07dea6b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
14 deletions
+1
-14
BUILD
pkg/volume/fc/BUILD
+0
-1
attacher.go
pkg/volume/fc/attacher.go
+0
-5
fc.go
pkg/volume/fc/fc.go
+1
-8
No files found.
pkg/volume/fc/BUILD
View file @
f744b12e
...
...
@@ -24,7 +24,6 @@ go_library(
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/utils/exec:go_default_library",
],
)
...
...
pkg/volume/fc/attacher.go
View file @
f744b12e
...
...
@@ -29,13 +29,11 @@ import (
"k8s.io/kubernetes/pkg/volume"
volumeutil
"k8s.io/kubernetes/pkg/volume/util"
"k8s.io/kubernetes/pkg/volume/util/volumehelper"
"k8s.io/utils/exec"
)
type
fcAttacher
struct
{
host
volume
.
VolumeHost
manager
diskManager
exe
exec
.
Interface
}
var
_
volume
.
Attacher
=
&
fcAttacher
{}
...
...
@@ -46,7 +44,6 @@ func (plugin *fcPlugin) NewAttacher() (volume.Attacher, error) {
return
&
fcAttacher
{
host
:
plugin
.
host
,
manager
:
&
FCUtil
{},
exe
:
exec
.
New
(),
},
nil
}
...
...
@@ -126,7 +123,6 @@ func (attacher *fcAttacher) MountDevice(spec *volume.Spec, devicePath string, de
type
fcDetacher
struct
{
mounter
mount
.
Interface
manager
diskManager
exe
exec
.
Interface
}
var
_
volume
.
Detacher
=
&
fcDetacher
{}
...
...
@@ -135,7 +131,6 @@ func (plugin *fcPlugin) NewDetacher() (volume.Detacher, error) {
return
&
fcDetacher
{
mounter
:
plugin
.
host
.
GetMounter
(
plugin
.
GetPluginName
()),
manager
:
&
FCUtil
{},
exe
:
exec
.
New
(),
},
nil
}
...
...
pkg/volume/fc/fc.go
View file @
f744b12e
...
...
@@ -28,17 +28,15 @@ import (
utilstrings
"k8s.io/kubernetes/pkg/util/strings"
"k8s.io/kubernetes/pkg/volume"
"k8s.io/kubernetes/pkg/volume/util"
"k8s.io/utils/exec"
)
// This is the primary entrypoint for volume plugins.
func
ProbeVolumePlugins
()
[]
volume
.
VolumePlugin
{
return
[]
volume
.
VolumePlugin
{
&
fcPlugin
{
nil
,
exec
.
New
()
}}
return
[]
volume
.
VolumePlugin
{
&
fcPlugin
{
nil
}}
}
type
fcPlugin
struct
{
host
volume
.
VolumeHost
exe
exec
.
Interface
}
var
_
volume
.
VolumePlugin
=
&
fcPlugin
{}
...
...
@@ -160,11 +158,6 @@ func (plugin *fcPlugin) newUnmounterInternal(volName string, podUID types.UID, m
},
nil
}
func
(
plugin
*
fcPlugin
)
execCommand
(
command
string
,
args
[]
string
)
([]
byte
,
error
)
{
cmd
:=
plugin
.
exe
.
Command
(
command
,
args
...
)
return
cmd
.
CombinedOutput
()
}
func
(
plugin
*
fcPlugin
)
ConstructVolumeSpec
(
volumeName
,
mountPath
string
)
(
*
volume
.
Spec
,
error
)
{
fcVolume
:=
&
v1
.
Volume
{
Name
:
volumeName
,
...
...
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