mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #20183 from ihmccreery/feature-fsgroup
Auto commit by PR queue bot
This commit is contained in:
commit
b00fb1211b
@ -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)
|
||||||
|
@ -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)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user