diff --git a/registry/txt.go b/registry/txt.go index 917588ef18..5289308508 100644 --- a/registry/txt.go +++ b/registry/txt.go @@ -98,13 +98,11 @@ func (im *TXTRegistry) Records() ([]*endpoint.Endpoint, error) { } for _, ep := range endpoints { + ep.Labels = endpoint.NewLabels() if labels, ok := labelMap[ep.DNSName]; ok { for k, v := range labels { ep.Labels[k] = v } - } else { - //this indicates that owner could not be identified, as there is no corresponding TXT record - ep.Labels = endpoint.NewLabels() } }