Add Equal funtion to metrics

This commit is contained in:
gmarek
2016-01-14 10:54:01 +01:00
parent bf315d4563
commit 257e964537
5 changed files with 37 additions and 0 deletions

View File

@@ -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 {