diff --git a/plan/plan.go b/plan/plan.go index 21bf5b677..cdbdf1837 100644 --- a/plan/plan.go +++ b/plan/plan.go @@ -17,6 +17,7 @@ limitations under the License. package plan import ( + "fmt" "strings" "github.com/kubernetes-incubator/external-dns/endpoint" @@ -78,6 +79,10 @@ type planTableRow struct { candidates []*endpoint.Endpoint } +func (t planTableRow) String() string { + return fmt.Sprintf("planTableRow{current=%v, candidates=%v}", t.current, t.candidates) +} + func (t planTable) addCurrent(e *endpoint.Endpoint) { dnsName := sanitizeDNSName(e.DNSName) if _, ok := t.rows[dnsName]; !ok {