Skip to content

Commit

Permalink
Don't erase endpoints labels (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-prudhomme authored and linki committed Oct 2, 2018
1 parent 7dbd6b0 commit 6285b2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion registry/txt.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ func (im *TXTRegistry) Records() ([]*endpoint.Endpoint, error) {

for _, ep := range endpoints {
if labels, ok := labelMap[ep.DNSName]; ok {
ep.Labels = labels
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()
Expand Down

0 comments on commit 6285b2c

Please sign in to comment.