Skip to content

Commit a25b87d

Browse files
committed
e2e apimachinery: use feature gate
Using the feature gate has the advantage that the stability tag gets added automatically and no changes are needed when graduating it. Once it reaches GA, the tag needs to be removed together with the feature gate. In fact, the current `[ALPHA]` is already wrong: the feature has already graduated to beta...
1 parent dc8b57d commit a25b87d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/apimachinery/validatingadmissionpolicy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ import (
3131
apierrors "k8s.io/apimachinery/pkg/api/errors"
3232
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3333
"k8s.io/apimachinery/pkg/util/wait"
34+
"k8s.io/apiserver/pkg/features"
3435
clientset "k8s.io/client-go/kubernetes"
3536
"k8s.io/kubernetes/test/e2e/framework"
3637
admissionapi "k8s.io/pod-security-admission/api"
3738
)
3839

39-
var _ = SIGDescribe("ValidatingAdmissionPolicy [Privileged:ClusterAdmin][Alpha][Feature:ValidatingAdmissionPolicy]", func() {
40+
var _ = SIGDescribe("ValidatingAdmissionPolicy [Privileged:ClusterAdmin]", framework.WithFeatureGate(features.ValidatingAdmissionPolicy), func() {
4041
f := framework.NewDefaultFramework("validating-admission-policy")
4142
f.NamespacePodSecurityLevel = admissionapi.LevelBaseline
4243

0 commit comments

Comments
 (0)