mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-11-01 19:21:00 +01:00
Add debug logging for CNAME with multiple targets
This commit is contained in:
parent
7e10c80323
commit
c3225c7cf1
@ -227,6 +227,10 @@ func (sc *serviceSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, e
|
||||
mergedEndpoints[lastMergedEndpoint].SetIdentifier == endpoints[i].SetIdentifier &&
|
||||
mergedEndpoints[lastMergedEndpoint].RecordTTL == endpoints[i].RecordTTL {
|
||||
mergedEndpoints[lastMergedEndpoint].Targets = append(mergedEndpoints[lastMergedEndpoint].Targets, endpoints[i].Targets[0])
|
||||
} else if mergedEndpoints[lastMergedEndpoint].DNSName == endpoints[i].DNSName &&
|
||||
mergedEndpoints[lastMergedEndpoint].RecordType == endpoints[i].RecordType &&
|
||||
mergedEndpoints[lastMergedEndpoint].RecordType == endpoint.RecordTypeCNAME {
|
||||
log.Debugf("CNAME %s with multiple targets found", endpoints[i].DNSName)
|
||||
} else {
|
||||
mergedEndpoints = append(mergedEndpoints, endpoints[i])
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user