Skip to content

Commit 48d0088

Browse files
authored
Merge pull request kubernetes#83702 from mattjmcnaughton/mattjmcnaughton/staticcheck-fix-e2e-lifecycle
Address staticcheck failures for test/e2e/lifecycle/bootstrap
2 parents 54f089f + b92a512 commit 48d0088

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ test/e2e/common
8282
test/e2e/instrumentation/logging/stackdriver
8383
test/e2e/instrumentation/monitoring
8484
test/e2e/lifecycle
85-
test/e2e/lifecycle/bootstrap
8685
test/e2e/manifest
8786
test/e2e/network
8887
test/e2e/storage

test/e2e/lifecycle/bootstrap/bootstrap_signer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ var _ = lifecycle.SIGDescribe("[Feature:BootstrapTokens]", func() {
6868
tokenId, err := GenerateTokenId()
6969
framework.ExpectNoError(err)
7070
secret := newTokenSecret(tokenId, "tokenSecret")
71-
secret, err = c.CoreV1().Secrets(metav1.NamespaceSystem).Create(secret)
71+
_, err = c.CoreV1().Secrets(metav1.NamespaceSystem).Create(secret)
72+
framework.ExpectNoError(err)
7273
secretNeedClean = bootstrapapi.BootstrapTokenSecretPrefix + tokenId
7374

7475
ginkgo.By("wait for the bootstrap token secret be signed")

0 commit comments

Comments
 (0)