add missing federated resources (#2728)

Signed-off-by: Jeff <zw0948@gmail.com>
This commit is contained in:
zryfish
2020-07-31 18:22:23 +08:00
committed by GitHub
parent 4702beb6ac
commit bf55d23de9
5 changed files with 86 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ func (c nodesGetter) List(_ string, query *query.Query) (*api.ListResult, error)
}
// ignore the error, skip annotating process if error happened
pods, _ := c.informers.Core().V1().Pods().Lister().Pods("").List(labels.Everything())
pods, _ := c.informers.Core().V1().Pods().Lister().Pods("").List(query.Selector())
var nonTerminatedPodsList []*v1.Pod
for _, pod := range pods {
if pod.Status.Phase != v1.PodSucceeded && pod.Status.Phase != v1.PodFailed {