@@ -1544,7 +1544,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
1544
1544
return obtainedPodNames
1545
1545
}, ConsistOf (tc .expectedPods )))
1546
1546
for _ , pod := range obtainedStructuredPodList .Items {
1547
- Expect (informer .Get (context .Background (), client .ObjectKeyFromObject (& pod ), & pod )).To (Succeed ()) //nolint:gosec // We don't retain the pointer
1547
+ Expect (informer .Get (context .Background (), client .ObjectKeyFromObject (& pod ), & pod )).To (Succeed ()) // We don't retain the pointer
1548
1548
}
1549
1549
1550
1550
By ("Checking with unstructured" )
@@ -1564,7 +1564,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
1564
1564
return obtainedPodNames
1565
1565
}, ConsistOf (tc .expectedPods )))
1566
1566
for _ , pod := range obtainedUnstructuredPodList .Items {
1567
- Expect (informer .Get (context .Background (), client .ObjectKeyFromObject (& pod ), & pod )).To (Succeed ()) //nolint:gosec // We don't retain the pointer
1567
+ Expect (informer .Get (context .Background (), client .ObjectKeyFromObject (& pod ), & pod )).To (Succeed ()) // We don't retain the pointer
1568
1568
}
1569
1569
1570
1570
By ("Checking with metadata" )
@@ -1584,7 +1584,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
1584
1584
return obtainedPodNames
1585
1585
}, ConsistOf (tc .expectedPods )))
1586
1586
for _ , pod := range obtainedMetadataPodList .Items {
1587
- Expect (informer .Get (context .Background (), client .ObjectKeyFromObject (& pod ), & pod )).To (Succeed ()) //nolint:gosec // We don't retain the pointer
1587
+ Expect (informer .Get (context .Background (), client .ObjectKeyFromObject (& pod ), & pod )).To (Succeed ()) // We don't retain the pointer
1588
1588
}
1589
1589
},
1590
1590
Entry ("when selectors are empty it has to inform about all the pods" , selectorsTestCase {
0 commit comments