mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-10-17 12:51:00 +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
|
||||
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user