mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
e2e_node: mount_rro: add SkipUnlessFeatureGateEnabled(RecursiveReadOnlyMounts)
Fix issue 123848 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
ebc1a7b7fb
commit
5cc1e56248
@ -25,6 +25,7 @@ import (
|
|||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/util/uuid"
|
"k8s.io/apimachinery/pkg/util/uuid"
|
||||||
|
"k8s.io/kubernetes/pkg/features"
|
||||||
"k8s.io/kubernetes/test/e2e/framework"
|
"k8s.io/kubernetes/test/e2e/framework"
|
||||||
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
|
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
|
||||||
e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
|
e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
|
||||||
@ -135,6 +136,7 @@ var _ = SIGDescribe("Mount recursive read-only [LinuxOnly]", framework.WithSeria
|
|||||||
}) // Context
|
}) // Context
|
||||||
ginkgo.Context("when the runtime does not support recursive read-only mounts", func() {
|
ginkgo.Context("when the runtime does not support recursive read-only mounts", func() {
|
||||||
f.It("should accept non-recursive read-only mounts", func(ctx context.Context) {
|
f.It("should accept non-recursive read-only mounts", func(ctx context.Context) {
|
||||||
|
e2eskipper.SkipUnlessFeatureGateEnabled(features.RecursiveReadOnlyMounts)
|
||||||
ginkgo.By("waiting for the node to be ready", func() {
|
ginkgo.By("waiting for the node to be ready", func() {
|
||||||
waitForNodeReady(ctx)
|
waitForNodeReady(ctx)
|
||||||
if supportsRRO(ctx, f) {
|
if supportsRRO(ctx, f) {
|
||||||
@ -175,6 +177,7 @@ var _ = SIGDescribe("Mount recursive read-only [LinuxOnly]", framework.WithSeria
|
|||||||
}) // By
|
}) // By
|
||||||
}) // It
|
}) // It
|
||||||
f.It("should reject recursive read-only mounts", func(ctx context.Context) {
|
f.It("should reject recursive read-only mounts", func(ctx context.Context) {
|
||||||
|
e2eskipper.SkipUnlessFeatureGateEnabled(features.RecursiveReadOnlyMounts)
|
||||||
ginkgo.By("waiting for the node to be ready", func() {
|
ginkgo.By("waiting for the node to be ready", func() {
|
||||||
waitForNodeReady(ctx)
|
waitForNodeReady(ctx)
|
||||||
if supportsRRO(ctx, f) {
|
if supportsRRO(ctx, f) {
|
||||||
|
Loading…
Reference in New Issue
Block a user