diff --git a/test/e2e/auth/node_authn.go b/test/e2e/auth/node_authn.go index 63beb0223dd..9633ae4251c 100644 --- a/test/e2e/auth/node_authn.go +++ b/test/e2e/auth/node_authn.go @@ -23,9 +23,7 @@ import ( "strconv" v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/kubernetes/pkg/cluster/ports" - "k8s.io/kubernetes/test/e2e/feature" "k8s.io/kubernetes/test/e2e/framework" e2enode "k8s.io/kubernetes/test/e2e/framework/node" e2epod "k8s.io/kubernetes/test/e2e/framework/pod" @@ -36,7 +34,7 @@ import ( "github.com/onsi/gomega" ) -var _ = SIGDescribe(feature.NodeAuthenticator, func() { +var _ = SIGDescribe("NodeAuthenticator", func() { f := framework.NewDefaultFramework("node-authn") f.NamespacePodSecurityLevel = admissionapi.LevelBaseline @@ -68,18 +66,6 @@ var _ = SIGDescribe(feature.NodeAuthenticator, func() { }) ginkgo.It("The kubelet can delegate ServiceAccount tokens to the API server", func(ctx context.Context) { - ginkgo.By("create a new ServiceAccount for authentication") - trueValue := true - newSA := &v1.ServiceAccount{ - ObjectMeta: metav1.ObjectMeta{ - Namespace: ns, - Name: "node-auth-newsa", - }, - AutomountServiceAccountToken: &trueValue, - } - _, err := f.ClientSet.CoreV1().ServiceAccounts(ns).Create(ctx, newSA, metav1.CreateOptions{}) - framework.ExpectNoError(err, "failed to create service account (%s:%s)", ns, newSA.Name) - pod := createNodeAuthTestPod(ctx, f) for _, nodeIP := range nodeIPs { diff --git a/test/e2e/feature/feature.go b/test/e2e/feature/feature.go index 6bb2353a642..7f37bdc6347 100644 --- a/test/e2e/feature/feature.go +++ b/test/e2e/feature/feature.go @@ -311,9 +311,6 @@ var ( // Testing node allocatable validations NodeAllocatable = framework.WithFeature(framework.ValidFeatures.Add("NodeAllocatable")) - // TODO: document the feature (owning SIG, when to use this feature for a test) - NodeAuthenticator = framework.WithFeature(framework.ValidFeatures.Add("NodeAuthenticator")) - // Owner: sig-node // Node Problem Detect e2e tests in tree. NodeProblemDetector = framework.WithFeature(framework.ValidFeatures.Add("NodeProblemDetector"))