fix(coredns): debug message on labels update (#5789)

* coredns: fix debug message

* consistent spacing in debug message

Co-authored-by: Ivan Ka <5395690+ivankatliarchuk@users.noreply.github.com>

---------

Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com>
Co-authored-by: Ivan Ka <5395690+ivankatliarchuk@users.noreply.github.com>
This commit is contained in:
Pascal Bachor 2025-09-03 12:37:14 +02:00 committed by GitHub
parent 6b9e0174e7
commit e88b94bdee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,8 +302,8 @@ func (p coreDNSProvider) groupEndpoints(changes *plan.Changes) map[string][]*end
grouped[ep.DNSName] = append(grouped[ep.DNSName], ep) grouped[ep.DNSName] = append(grouped[ep.DNSName], ep)
} }
for i, ep := range changes.UpdateNew { for i, ep := range changes.UpdateNew {
log.Debugf("Updating labels (%s) with old labels (%s)", ep.Labels, changes.UpdateOld[i].Labels)
ep.Labels = changes.UpdateOld[i].Labels ep.Labels = changes.UpdateOld[i].Labels
log.Debugf("Updating labels (%s) with old labels(%s)", ep.Labels, changes.UpdateOld[i].Labels)
grouped[ep.DNSName] = append(grouped[ep.DNSName], ep) grouped[ep.DNSName] = append(grouped[ep.DNSName], ep)
} }
return grouped return grouped