From f275d3c3d14ce4ac24eec74f4224ce9c18caf4a2 Mon Sep 17 00:00:00 2001 From: Pete Savage Date: Thu, 26 Jan 2023 17:05:20 +0000 Subject: [PATCH] Re-enable pprof --- .golangci.yml | 2 ++ main.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index a23c37e29..e6b23bc36 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,3 +7,5 @@ issues: linters: - gofmt - goimports + exclude: + - "G108: Profiling endpoint is automatically" diff --git a/main.go b/main.go index a356ec0a7..be8eeea15 100644 --- a/main.go +++ b/main.go @@ -24,6 +24,8 @@ import ( // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.) // to ensure that exec-entrypoint and run can make use of them. + _ "net/http/pprof" + "go.uber.org/zap" _ "k8s.io/client-go/plugin/pkg/client/auth"