mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 17:57:33 +00:00
Make FSGroup e2es [Feature:FSGroup], not [Skipped]
This commit is contained in:
@@ -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)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user