mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Add Equal funtion to metrics
This commit is contained in:
@@ -42,6 +42,10 @@ var KnownControllerManagerMetrics = map[string][]string{
|
||||
|
||||
type ControllerManagerMetrics Metrics
|
||||
|
||||
func (m *ControllerManagerMetrics) Equal(o ControllerManagerMetrics) bool {
|
||||
return (*Metrics)(m).Equal(Metrics(o))
|
||||
}
|
||||
|
||||
func NewControllerManagerMetrics() ControllerManagerMetrics {
|
||||
result := NewMetrics()
|
||||
for metric := range KnownControllerManagerMetrics {
|
||||
|
||||
Reference in New Issue
Block a user