Skip to content

Commit

Permalink
lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lindnerby committed Nov 30, 2023
1 parent ef1c593 commit f144cb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime-watcher/internal/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down
5 changes: 3 additions & 2 deletions runtime-watcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f144cb3

Please sign in to comment.