mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-04 22:26:11 +02:00
fix(gen/metrics): duplicate generated in metrics.md (#5837)
This commit is contained in:
parent
f7793950cc
commit
1300a6a339
@ -22,6 +22,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"reflect"
|
||||
"slices"
|
||||
"sort"
|
||||
"strings"
|
||||
"text/template"
|
||||
@ -71,6 +72,7 @@ func generateMarkdownTable(m *metrics.MetricRegistry, withRuntime bool) (string,
|
||||
"process_network_transmit_bytes_total",
|
||||
}...)
|
||||
sort.Strings(runtimeMetrics)
|
||||
runtimeMetrics = slices.Compact(runtimeMetrics)
|
||||
} else {
|
||||
runtimeMetrics = []string{}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user