mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 09:06:58 +02:00
Implement proposed change by mloiseleur
This commit is contained in:
parent
0c43e808bb
commit
45579e14b1
@ -193,7 +193,8 @@ func (cs *crdSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error
|
||||
if ep.RecordType != "NAPTR" && strings.HasSuffix(target, ".") {
|
||||
illegalTarget = true
|
||||
break
|
||||
} else if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") {
|
||||
}
|
||||
if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") {
|
||||
illegalTarget = true
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user