mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-07 10:06:57 +02:00
istio-gateway: Add debug logging when endpoints missing
This commit is contained in:
parent
e21f2c4387
commit
b79dc1e894
@ -172,6 +172,11 @@ func (sc *gatewaySource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, e
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(gwEndpoints) == 0 {
|
||||||
|
log.Debugf("No endpoints could be generated from gateway %s/%s", gateway.Namespace, gateway.Name)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
log.Debugf("Endpoints generated from gateway: %s/%s: %v", gateway.Namespace, gateway.Name, gwEndpoints)
|
log.Debugf("Endpoints generated from gateway: %s/%s: %v", gateway.Namespace, gateway.Name, gwEndpoints)
|
||||||
sc.setResourceLabel(gateway, gwEndpoints)
|
sc.setResourceLabel(gateway, gwEndpoints)
|
||||||
endpoints = append(endpoints, gwEndpoints...)
|
endpoints = append(endpoints, gwEndpoints...)
|
||||||
|
Loading…
Reference in New Issue
Block a user