Skip to content

Commit

Permalink
Merge pull request #609 from freehan/cherry-pick
Browse files Browse the repository at this point in the history
do not use condition predicate while getting zone for node
  • Loading branch information
k8s-ci-robot authored Jan 14, 2019
2 parents 11c1f31 + f2d9de9 commit 319e034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/translator/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 319e034

Please sign in to comment.