Skip to content

Commit b716b76

Browse files
committed
Fixing NAPTR support (kubernetes-sigs#3979)
1 parent 1bc6857 commit b716b76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/crd.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ func (cs *crdSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error
190190

191191
illegalTarget := false
192192
for _, target := range ep.Targets {
193-
if strings.HasSuffix(target, ".") {
193+
if ep.RecordType != "NAPTR" && strings.HasSuffix(target, ".") {
194+
illegalTarget = true
195+
break
196+
} else if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") {
194197
illegalTarget = true
195198
break
196199
}

0 commit comments

Comments
 (0)