@@ -23,9 +23,7 @@ import (
23
23
"strconv"
24
24
25
25
v1 "k8s.io/api/core/v1"
26
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
27
26
"k8s.io/kubernetes/pkg/cluster/ports"
28
- "k8s.io/kubernetes/test/e2e/feature"
29
27
"k8s.io/kubernetes/test/e2e/framework"
30
28
e2enode "k8s.io/kubernetes/test/e2e/framework/node"
31
29
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
@@ -36,7 +34,7 @@ import (
36
34
"github.com/onsi/gomega"
37
35
)
38
36
39
- var _ = SIGDescribe (feature . NodeAuthenticator , func () {
37
+ var _ = SIGDescribe (" NodeAuthenticator" , func () {
40
38
41
39
f := framework .NewDefaultFramework ("node-authn" )
42
40
f .NamespacePodSecurityLevel = admissionapi .LevelBaseline
@@ -68,18 +66,6 @@ var _ = SIGDescribe(feature.NodeAuthenticator, func() {
68
66
})
69
67
70
68
ginkgo .It ("The kubelet can delegate ServiceAccount tokens to the API server" , func (ctx context.Context ) {
71
- ginkgo .By ("create a new ServiceAccount for authentication" )
72
- trueValue := true
73
- newSA := & v1.ServiceAccount {
74
- ObjectMeta : metav1.ObjectMeta {
75
- Namespace : ns ,
76
- Name : "node-auth-newsa" ,
77
- },
78
- AutomountServiceAccountToken : & trueValue ,
79
- }
80
- _ , err := f .ClientSet .CoreV1 ().ServiceAccounts (ns ).Create (ctx , newSA , metav1.CreateOptions {})
81
- framework .ExpectNoError (err , "failed to create service account (%s:%s)" , ns , newSA .Name )
82
-
83
69
pod := createNodeAuthTestPod (ctx , f )
84
70
85
71
for _ , nodeIP := range nodeIPs {
0 commit comments