File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -156,5 +156,13 @@ var _ = framework.KubeDescribe("Lease", func() {
156
156
157
157
_ , err = leaseClient .Get (context .TODO (), name , metav1.GetOptions {})
158
158
framework .ExpectEqual (apierrors .IsNotFound (err ), true )
159
+
160
+ leaseClient = f .ClientSet .CoordinationV1 ().Leases (metav1 .NamespaceAll )
161
+ // Number of leases may be high in large clusters, as Lease object is
162
+ // created for every node by the corresponding Kubelet.
163
+ // That said, the objects themselves are small (~300B), so even with 5000
164
+ // of them, that gives ~1.5MB, which is acceptable.
165
+ _ , err = leaseClient .List (context .TODO (), metav1.ListOptions {})
166
+ framework .ExpectNoError (err , "couldn't list Leases from all namespace" )
159
167
})
160
168
})
You can’t perform that action at this time.
0 commit comments