mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 06:45:27 +01:00
replace go kit log admission pkg (#6768)
This commit is contained in:
@@ -23,7 +23,6 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/go-kit/log"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/collectors"
|
||||
"github.com/prometheus/client_golang/prometheus/collectors/version"
|
||||
@@ -81,7 +80,7 @@ func main() {
|
||||
wg, ctx := errgroup.WithContext(ctx)
|
||||
|
||||
mux := http.NewServeMux()
|
||||
admit := admission.New(log.With(goKitLogger, "component", "admissionwebhook"))
|
||||
admit := admission.New(logger.With("component", "admissionwebhook"))
|
||||
admit.Register(mux)
|
||||
|
||||
r := prometheus.NewRegistry()
|
||||
|
||||
@@ -524,8 +524,7 @@ func run(fs *flag.FlagSet) int {
|
||||
|
||||
// Setup the web server.
|
||||
mux := http.NewServeMux()
|
||||
|
||||
admit := admission.New(log.With(goKitLogger, "component", "admissionwebhook"))
|
||||
admit := admission.New(logger.With("component", "admissionwebhook"))
|
||||
admit.Register(mux)
|
||||
|
||||
r.MustRegister(
|
||||
|
||||
Reference in New Issue
Block a user