mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 17:46:57 +02:00
error when no node address could be found
This commit is contained in:
parent
c6943f8c52
commit
fee7046e72
@ -139,8 +139,7 @@ func (ns *nodeSource) Endpoints() ([]*endpoint.Endpoint, error) {
|
||||
|
||||
addrs, err := ns.nodeAddresses(node)
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
continue
|
||||
return nil, fmt.Errorf("failed to get node address from %s: %s", node.Name, err.Error())
|
||||
}
|
||||
|
||||
ep.Targets = endpoint.Targets(addrs)
|
||||
|
@ -175,7 +175,7 @@ func testNodeSourceEndpoints(t *testing.T) {
|
||||
map[string]string{},
|
||||
map[string]string{},
|
||||
[]*endpoint.Endpoint{},
|
||||
false,
|
||||
true,
|
||||
},
|
||||
{
|
||||
"annotated node without annotation filter returns endpoint",
|
||||
|
Loading…
Reference in New Issue
Block a user