From f144cb3c17e3e7d26de122efaba65b03bc52fa75 Mon Sep 17 00:00:00 2001 From: Benjamin Lindner Date: Thu, 30 Nov 2023 09:41:31 +0100 Subject: [PATCH] lint issues --- runtime-watcher/internal/handler.go | 4 ++-- runtime-watcher/main.go | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/runtime-watcher/internal/handler.go b/runtime-watcher/internal/handler.go index ffb2bba0..db27396f 100644 --- a/runtime-watcher/internal/handler.go +++ b/runtime-watcher/internal/handler.go @@ -73,8 +73,8 @@ func (h *Handler) Handle(writer http.ResponseWriter, request *http.Request) { h.logger.Error(errors.Join(errAdmission, err), "failed to parse AdmissionReview") return } - - h.metrics.UpdateSomething("handle_entry", 20) + someValue := 20 + h.metrics.UpdateSomething("handle_entry", float64(someValue)) h.logger.Info(fmt.Sprintf("incoming admission review for: %s", admissionReview.Request.Kind.String())) diff --git a/runtime-watcher/main.go b/runtime-watcher/main.go index 2f4a1b4e..217eb491 100644 --- a/runtime-watcher/main.go +++ b/runtime-watcher/main.go @@ -19,11 +19,12 @@ package main import ( "flag" "fmt" - "github.com/kyma-project/runtime-watcher/skr/internal/watchermetrics" - "github.com/prometheus/client_golang/prometheus/promhttp" "net/http" "os" + "github.com/kyma-project/runtime-watcher/skr/internal/watchermetrics" + "github.com/prometheus/client_golang/prometheus/promhttp" + "github.com/kyma-project/runtime-watcher/skr/internal/requestparser" "k8s.io/apimachinery/pkg/runtime"