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
dc0b7da5
Commit
dc0b7da5
authored
Jan 09, 2018
by
Humble Chirammal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add volumemetrics for glusterfs plugin.
Signed-off-by:
Humble Chirammal
<
hchiramm@redhat.com
>
parent
2d2fa023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
glusterfs.go
pkg/volume/glusterfs/glusterfs.go
+11
-9
No files found.
pkg/volume/glusterfs/glusterfs.go
View file @
dc0b7da5
...
...
@@ -172,10 +172,11 @@ func (plugin *glusterfsPlugin) newMounterInternal(spec *volume.Spec, ep *v1.Endp
source
,
readOnly
:=
plugin
.
getGlusterVolumeSource
(
spec
)
return
&
glusterfsMounter
{
glusterfs
:
&
glusterfs
{
volName
:
spec
.
Name
(),
mounter
:
mounter
,
pod
:
pod
,
plugin
:
plugin
,
volName
:
spec
.
Name
(),
mounter
:
mounter
,
pod
:
pod
,
plugin
:
plugin
,
MetricsProvider
:
volume
.
NewMetricsStatFS
(
plugin
.
host
.
GetPodVolumeDir
(
pod
.
UID
,
strings
.
EscapeQualifiedNameForDisk
(
glusterfsPluginName
),
spec
.
Name
())),
},
hosts
:
ep
,
path
:
source
.
Path
,
...
...
@@ -190,10 +191,11 @@ func (plugin *glusterfsPlugin) NewUnmounter(volName string, podUID types.UID) (v
func
(
plugin
*
glusterfsPlugin
)
newUnmounterInternal
(
volName
string
,
podUID
types
.
UID
,
mounter
mount
.
Interface
)
(
volume
.
Unmounter
,
error
)
{
return
&
glusterfsUnmounter
{
&
glusterfs
{
volName
:
volName
,
mounter
:
mounter
,
pod
:
&
v1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
UID
:
podUID
}},
plugin
:
plugin
,
volName
:
volName
,
mounter
:
mounter
,
pod
:
&
v1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
UID
:
podUID
}},
plugin
:
plugin
,
MetricsProvider
:
volume
.
NewMetricsStatFS
(
plugin
.
host
.
GetPodVolumeDir
(
podUID
,
strings
.
EscapeQualifiedNameForDisk
(
glusterfsPluginName
),
volName
)),
}},
nil
}
...
...
@@ -211,7 +213,7 @@ type glusterfs struct {
pod
*
v1
.
Pod
mounter
mount
.
Interface
plugin
*
glusterfsPlugin
volume
.
Metrics
Nil
volume
.
Metrics
Provider
}
type
glusterfsMounter
struct
{
...
...
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