Skip to content

Commit

Permalink
remove namespace from node query
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Jan 21, 2020
1 parent 15ab53e commit 3b99cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/endpoints/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func Get(ctx context.Context, c *k8s.Client, epNamespace, epName string) (ret En
ret.Addresses = append(ret.Addresses, a.GetIp())

epNode := new(corev1.Node)
if err = c.Get(ctx, epNamespace, a.GetNodeName(), epNode); err != nil {
log.Printf("WARNING: failed to get node %s for endpoint %s: %v", a.GetNodeName(), ep.String(), err)
if err = c.Get(ctx, "", a.GetNodeName(), epNode); err != nil {
log.Printf("WARNING: failed to get node %s for endpoint %s: %v", a.GetNodeName(), ep.GetMetadata().GetName(), err)
}
}
}
Expand Down

0 comments on commit 3b99cc9

Please sign in to comment.