kubernetes-sigs / external-dns

Configure external DNS servers (AWS Route53, Google CloudDNS and others) for Kubernetes Ingresses and Services
Apache License 2.0
7.75k stars 2.58k forks source link

Log when upsert or create ignores a command #4815

Open davhdavh opened 1 month ago

davhdavh commented 1 month ago

What would you like to be added:

The way the Policy class is implemented, it will silently drop the entire range of endpoints to update without any notification on what or why it does this.

e.g. here the list of Deletes are just dropped: https://github.com/kubernetes-sigs/external-dns/blob/59b243856a596ec47827889945b84d4d15d5c1dd/plan/policy.go#L44-L48

Please add a log that reports which entries are ignored in https://github.com/kubernetes-sigs/external-dns/blob/59b243856a596ec47827889945b84d4d15d5c1dd/plan/policy.go#L44 and https://github.com/kubernetes-sigs/external-dns/blob/59b243856a596ec47827889945b84d4d15d5c1dd/plan/policy.go#L56

Why is this needed:

external-dns is too much of a blackbox that just does its own thing and hard to tell why.