mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #17233 from mnagy/remove_unused_var
Auto commit by PR queue bot
This commit is contained in:
commit
d10bdd7385
@ -35,7 +35,6 @@ var _ = Describe("ServiceAccounts", func() {
|
|||||||
f := NewFramework("svcaccounts")
|
f := NewFramework("svcaccounts")
|
||||||
|
|
||||||
It("should mount an API token into pods [Conformance]", func() {
|
It("should mount an API token into pods [Conformance]", func() {
|
||||||
var tokenName string
|
|
||||||
var tokenContent string
|
var tokenContent string
|
||||||
var rootCAContent string
|
var rootCAContent string
|
||||||
|
|
||||||
@ -53,7 +52,6 @@ var _ = Describe("ServiceAccounts", func() {
|
|||||||
if len(secrets.Items) > 1 {
|
if len(secrets.Items) > 1 {
|
||||||
return false, fmt.Errorf("Expected 1 token secret, got %d", len(secrets.Items))
|
return false, fmt.Errorf("Expected 1 token secret, got %d", len(secrets.Items))
|
||||||
}
|
}
|
||||||
tokenName = secrets.Items[0].Name
|
|
||||||
tokenContent = string(secrets.Items[0].Data[api.ServiceAccountTokenKey])
|
tokenContent = string(secrets.Items[0].Data[api.ServiceAccountTokenKey])
|
||||||
rootCAContent = string(secrets.Items[0].Data[api.ServiceAccountRootCAKey])
|
rootCAContent = string(secrets.Items[0].Data[api.ServiceAccountRootCAKey])
|
||||||
return true, nil
|
return true, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user