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
dee94701
Commit
dee94701
authored
Jul 28, 2017
by
jianglingxia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
squash the commits into one
parent
04c863cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
glusterfs.go
pkg/volume/glusterfs/glusterfs.go
+1
-5
No files found.
pkg/volume/glusterfs/glusterfs.go
View file @
dee94701
...
...
@@ -542,13 +542,12 @@ func (plugin *glusterfsPlugin) collectGids(className string, gidTable *MinMaxAll
// - Adapt the range of the table to the current range of the SC.
//
func
(
plugin
*
glusterfsPlugin
)
getGidTable
(
className
string
,
min
int
,
max
int
)
(
*
MinMaxAllocator
,
error
)
{
var
err
error
plugin
.
gidTableLock
.
Lock
()
gidTable
,
ok
:=
plugin
.
gidTable
[
className
]
plugin
.
gidTableLock
.
Unlock
()
if
ok
{
err
=
gidTable
.
SetRange
(
min
,
max
)
err
:
=
gidTable
.
SetRange
(
min
,
max
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -607,7 +606,6 @@ func (d *glusterfsVolumeDeleter) getGid() (int, bool, error) {
}
func
(
d
*
glusterfsVolumeDeleter
)
Delete
()
error
{
var
err
error
glog
.
V
(
2
)
.
Infof
(
"glusterfs: delete volume: %s "
,
d
.
glusterfsMounter
.
path
)
volumeName
:=
d
.
glusterfsMounter
.
path
volumeID
:=
dstrings
.
TrimPrefix
(
volumeName
,
volPrefix
)
...
...
@@ -681,7 +679,6 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
return
nil
,
fmt
.
Errorf
(
"invalid AccessModes %v: only AccessModes %v are supported"
,
p
.
options
.
PVC
.
Spec
.
AccessModes
,
p
.
plugin
.
GetAccessModes
())
}
var
err
error
if
p
.
options
.
PVC
.
Spec
.
Selector
!=
nil
{
glog
.
V
(
4
)
.
Infof
(
"glusterfs: not able to parse your claim Selector"
)
return
nil
,
fmt
.
Errorf
(
"glusterfs: not able to parse your claim Selector"
)
...
...
@@ -921,7 +918,6 @@ func getClusterNodes(cli *gcli.Client, cluster string) (dynamicHostIps []string,
func
parseClassParameters
(
params
map
[
string
]
string
,
kubeClient
clientset
.
Interface
)
(
*
provisionerConfig
,
error
)
{
var
cfg
provisionerConfig
var
err
error
cfg
.
gidMin
=
defaultGidMin
cfg
.
gidMax
=
defaultGidMax
...
...
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