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
b00fb121
Commit
b00fb121
authored
Feb 09, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20183 from ihmccreery/feature-fsgroup
Auto commit by PR queue bot
parents
8d964a7d
3022cbef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
downwardapi_volume.go
test/e2e/downwardapi_volume.go
+1
-1
empty_dir.go
test/e2e/empty_dir.go
+5
-6
No files found.
test/e2e/downwardapi_volume.go
View file @
b00fb121
...
@@ -41,7 +41,7 @@ var _ = Describe("Downward API volume", func() {
...
@@ -41,7 +41,7 @@ var _ = Describe("Downward API volume", func() {
},
f
.
Namespace
.
Name
)
},
f
.
Namespace
.
Name
)
})
})
It
(
"should provide podname as non-root with fsgroup [
Conformance] [Skipped
]"
,
func
()
{
It
(
"should provide podname as non-root with fsgroup [
Feature:FSGroup
]"
,
func
()
{
podName
:=
"metadata-volume-"
+
string
(
util
.
NewUUID
())
podName
:=
"metadata-volume-"
+
string
(
util
.
NewUUID
())
uid
:=
int64
(
1001
)
uid
:=
int64
(
1001
)
gid
:=
int64
(
1234
)
gid
:=
int64
(
1234
)
...
...
test/e2e/empty_dir.go
View file @
b00fb121
...
@@ -37,21 +37,20 @@ var _ = Describe("EmptyDir volumes", func() {
...
@@ -37,21 +37,20 @@ var _ = Describe("EmptyDir volumes", func() {
f
:=
NewFramework
(
"emptydir"
)
f
:=
NewFramework
(
"emptydir"
)
// TODO: Remove [Skipped] when security context is enabled everywhere
Context
(
"when FSGroup is specified [Feature:FSGroup]"
,
func
()
{
Context
(
"when FSGroup is specified [Skipped]"
,
func
()
{
It
(
"new files should be created with FSGroup ownership when container is root"
,
func
()
{
It
(
"new files should be created with FSGroup ownership when container is root [Conformance]"
,
func
()
{
doTestSetgidFSGroup
(
f
,
testImageRootUid
,
api
.
StorageMediumMemory
)
doTestSetgidFSGroup
(
f
,
testImageRootUid
,
api
.
StorageMediumMemory
)
})
})
It
(
"new files should be created with FSGroup ownership when container is non-root
[Conformance]
"
,
func
()
{
It
(
"new files should be created with FSGroup ownership when container is non-root"
,
func
()
{
doTestSetgidFSGroup
(
f
,
testImageNonRootUid
,
api
.
StorageMediumMemory
)
doTestSetgidFSGroup
(
f
,
testImageNonRootUid
,
api
.
StorageMediumMemory
)
})
})
It
(
"volume on default medium should have the correct mode using FSGroup
[Conformance]
"
,
func
()
{
It
(
"volume on default medium should have the correct mode using FSGroup"
,
func
()
{
doTestVolumeModeFSGroup
(
f
,
testImageRootUid
,
api
.
StorageMediumDefault
)
doTestVolumeModeFSGroup
(
f
,
testImageRootUid
,
api
.
StorageMediumDefault
)
})
})
It
(
"volume on tmpfs should have the correct mode using FSGroup
[Conformance]
"
,
func
()
{
It
(
"volume on tmpfs should have the correct mode using FSGroup"
,
func
()
{
doTestVolumeModeFSGroup
(
f
,
testImageRootUid
,
api
.
StorageMediumMemory
)
doTestVolumeModeFSGroup
(
f
,
testImageRootUid
,
api
.
StorageMediumMemory
)
})
})
})
})
...
...
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