Merge pull request #83702 from mattjmcnaughton/mattjmcnaughton/staticcheck-fix-e2e-lifecycle

Address staticcheck failures for test/e2e/lifecycle/bootstrap
This commit is contained in:
Kubernetes Prow Robot 2019-10-11 10:53:57 -07:00 committed by GitHub
commit 48d0088510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,6 @@ test/e2e/common
test/e2e/instrumentation/logging/stackdriver
test/e2e/instrumentation/monitoring
test/e2e/lifecycle
test/e2e/lifecycle/bootstrap
test/e2e/manifest
test/e2e/network
test/e2e/storage

View File

@ -68,7 +68,8 @@ var _ = lifecycle.SIGDescribe("[Feature:BootstrapTokens]", func() {
tokenId, err := GenerateTokenId()
framework.ExpectNoError(err)
secret := newTokenSecret(tokenId, "tokenSecret")
secret, err = c.CoreV1().Secrets(metav1.NamespaceSystem).Create(secret)
_, err = c.CoreV1().Secrets(metav1.NamespaceSystem).Create(secret)
framework.ExpectNoError(err)
secretNeedClean = bootstrapapi.BootstrapTokenSecretPrefix + tokenId
ginkgo.By("wait for the bootstrap token secret be signed")