Skip to content

Commit

Permalink
Merge pull request #576 from pondohva/fix/nodeRemoving
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 2, 2019
2 parents 34e11f7 + 777ba73 commit 875e037
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 875e037

Please sign in to comment.