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
c8f0af2a
Unverified
Commit
c8f0af2a
authored
Sep 25, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68680 from benoitf/fix-chown
Fix chown on distributed flex volumes (like gluster)
parents
40c7c837
6584df59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
driver-call.go
pkg/volume/flexvolume/driver-call.go
+2
-0
mounter.go
pkg/volume/flexvolume/mounter.go
+3
-1
No files found.
pkg/volume/flexvolume/driver-call.go
View file @
c8f0af2a
...
@@ -223,6 +223,7 @@ type DriverCapabilities struct {
...
@@ -223,6 +223,7 @@ type DriverCapabilities struct {
Attach
bool
`json:"attach"`
Attach
bool
`json:"attach"`
SELinuxRelabel
bool
`json:"selinuxRelabel"`
SELinuxRelabel
bool
`json:"selinuxRelabel"`
SupportsMetrics
bool
`json:"supportsMetrics"`
SupportsMetrics
bool
`json:"supportsMetrics"`
FSGroup
bool
`json:"fsGroup"`
}
}
func
defaultCapabilities
()
*
DriverCapabilities
{
func
defaultCapabilities
()
*
DriverCapabilities
{
...
@@ -230,6 +231,7 @@ func defaultCapabilities() *DriverCapabilities {
...
@@ -230,6 +231,7 @@ func defaultCapabilities() *DriverCapabilities {
Attach
:
true
,
Attach
:
true
,
SELinuxRelabel
:
true
,
SELinuxRelabel
:
true
,
SupportsMetrics
:
false
,
SupportsMetrics
:
false
,
FSGroup
:
true
,
}
}
}
}
...
...
pkg/volume/flexvolume/mounter.go
View file @
c8f0af2a
...
@@ -92,7 +92,9 @@ func (f *flexVolumeMounter) SetUpAt(dir string, fsGroup *int64) error {
...
@@ -92,7 +92,9 @@ func (f *flexVolumeMounter) SetUpAt(dir string, fsGroup *int64) error {
}
}
if
!
f
.
readOnly
{
if
!
f
.
readOnly
{
volume
.
SetVolumeOwnership
(
f
,
fsGroup
)
if
f
.
plugin
.
capabilities
.
FSGroup
{
volume
.
SetVolumeOwnership
(
f
,
fsGroup
)
}
}
}
return
nil
return
nil
...
...
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