From f2d9de94bc9db343392f1b12d3a0045fa019ab44 Mon Sep 17 00:00:00 2001 From: Artur Gadelshin Date: Tue, 11 Dec 2018 19:02:54 +0300 Subject: [PATCH] do not use condition predicate while getting zone for node --- pkg/controller/translator/translator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/translator/translator.go b/pkg/controller/translator/translator.go index 831b97b1f2..a10092c35a 100644 --- a/pkg/controller/translator/translator.go +++ b/pkg/controller/translator/translator.go @@ -196,7 +196,7 @@ func getZone(n *api_v1.Node) string { // GetZoneForNode returns the zone for a given node by looking up its zone label. func (t *Translator) GetZoneForNode(name string) (string, error) { nodeLister := t.ctx.NodeInformer.GetIndexer() - nodes, err := listers.NewNodeLister(nodeLister).ListWithPredicate(utils.GetNodeConditionPredicate()) + nodes, err := listers.NewNodeLister(nodeLister).List(labels.Everything()) if err != nil { return "", err }