mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 01:26:59 +02:00
Fixing NAPTR support (https://github.com/kubernetes-sigs/external-dns/issues/3979)
This commit is contained in:
parent
1bc685774e
commit
b716b764af
@ -190,7 +190,10 @@ func (cs *crdSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error
|
||||
|
||||
illegalTarget := false
|
||||
for _, target := range ep.Targets {
|
||||
if strings.HasSuffix(target, ".") {
|
||||
if ep.RecordType != "NAPTR" && strings.HasSuffix(target, ".") {
|
||||
illegalTarget = true
|
||||
break
|
||||
} else if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") {
|
||||
illegalTarget = true
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user