Merge pull request #109719 from stlaz/e2e_nodeauthn_nosasecret

auth e2e: node_authn test: don't expect a SA secret
This commit is contained in:
Kubernetes Prow Robot 2022-05-19 15:13:53 -07:00 committed by GitHub
commit 4ab90ccebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,13 +53,6 @@ var _ = SIGDescribe("[Feature:NodeAuthenticator]", func() {
nodeIPs := e2enode.GetAddressesByTypeAndFamily(&nodes.Items[0], v1.NodeInternalIP, family)
framework.ExpectNotEqual(len(nodeIPs), 0)
// make sure ServiceAccount admission controller is enabled, so secret generation on SA creation works
saName := "default"
sa, err := f.ClientSet.CoreV1().ServiceAccounts(ns).Get(context.TODO(), saName, metav1.GetOptions{})
framework.ExpectNoError(err, "failed to retrieve service account (%s:%s)", ns, saName)
framework.ExpectNotEqual(len(sa.Secrets), 0)
})
ginkgo.It("The kubelet's main port 10250 should reject requests with no credentials", func() {