From e88b94bdeef24a8c0cdd2d4e4ccf744e6ea6684d Mon Sep 17 00:00:00 2001 From: Pascal Bachor <72917949+bachorp@users.noreply.github.com> Date: Wed, 3 Sep 2025 12:37:14 +0200 Subject: [PATCH] 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 Co-authored-by: Ivan Ka <5395690+ivankatliarchuk@users.noreply.github.com> --- provider/coredns/coredns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/coredns/coredns.go b/provider/coredns/coredns.go index fdd52904a..57ab8130f 100644 --- a/provider/coredns/coredns.go +++ b/provider/coredns/coredns.go @@ -302,8 +302,8 @@ func (p coreDNSProvider) groupEndpoints(changes *plan.Changes) map[string][]*end grouped[ep.DNSName] = append(grouped[ep.DNSName], ep) } 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 - log.Debugf("Updating labels (%s) with old labels(%s)", ep.Labels, changes.UpdateOld[i].Labels) grouped[ep.DNSName] = append(grouped[ep.DNSName], ep) } return grouped