From bcf4792daf265fc8eca51380accf772fd16c71a8 Mon Sep 17 00:00:00 2001 From: Giancarlo Rubio Date: Fri, 18 May 2018 21:15:19 +0200 Subject: [PATCH] Fix lint --- internal/ingress/controller/metrics.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/ingress/controller/metrics.go b/internal/ingress/controller/metrics.go index b427f1a59..88d662796 100644 --- a/internal/ingress/controller/metrics.go +++ b/internal/ingress/controller/metrics.go @@ -86,14 +86,17 @@ var ( ) ) +// IncReloadCount increment the reload counter func IncReloadCount() { reloadOperation.WithLabelValues(reloadLabel).Inc() } +// IncReloadErrorCount increment the reload error counter func IncReloadErrorCount() { reloadOperationErrors.WithLabelValues(reloadLabel).Inc() } +// ConfigSuccess set a boolean flag according to the output of the controller configuration reload func ConfigSuccess(success bool) { if success { ConfigSuccessTime() @@ -103,6 +106,7 @@ func ConfigSuccess(success bool) { } } +// ConfigSuccessTime set the current timestamp when the controller is successfully reloaded func ConfigSuccessTime() { configSuccessTime.Set(float64(time.Now().Unix())) }