mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-10-19 13:51:11 +02:00
Implement Stringer for planTableRow
Makes for clearer log messages.
This commit is contained in:
parent
b7fb7ec999
commit
3c646a39a1
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
package plan
|
package plan
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kubernetes-incubator/external-dns/endpoint"
|
"github.com/kubernetes-incubator/external-dns/endpoint"
|
||||||
@ -78,6 +79,10 @@ type planTableRow struct {
|
|||||||
candidates []*endpoint.Endpoint
|
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) {
|
func (t planTable) addCurrent(e *endpoint.Endpoint) {
|
||||||
dnsName := sanitizeDNSName(e.DNSName)
|
dnsName := sanitizeDNSName(e.DNSName)
|
||||||
if _, ok := t.rows[dnsName]; !ok {
|
if _, ok := t.rows[dnsName]; !ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user