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"