Skip to content

Commit

Permalink
policy-controller: Don't check for depreciated LegacyHostIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bzub committed Jul 13, 2017
1 parent a5ce7cc commit b874540
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/controllers/network_policy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,6 @@ func getNodeIP(node *apiv1.Node) (net.IP, error) {
if addresses, ok := addressMap[apiv1.NodeExternalIP]; ok {
return net.ParseIP(addresses[0].Address), nil
}
if addresses, ok := addressMap[apiv1.NodeLegacyHostIP]; ok {
return net.ParseIP(addresses[0].Address), nil
}
return nil, errors.New("host IP unknown")
}

Expand Down

0 comments on commit b874540

Please sign in to comment.