File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ import (
4646 "sigs.k8s.io/controller-runtime/pkg/healthz"
4747 "sigs.k8s.io/controller-runtime/pkg/log/zap"
4848 "sigs.k8s.io/controller-runtime/pkg/metrics"
49+ metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
4950
5051 "github.com/prometheus/client_golang/prometheus/promhttp"
5152 //+kubebuilder:scaffold:imports
@@ -349,7 +350,11 @@ func main() {
349350 Scheme : scheme ,
350351 PprofBindAddress : pprofAddr ,
351352 HealthProbeBindAddress : probeAddr ,
352- LeaderElection : false ,
353+ Metrics : metricsserver.Options {
354+ // Disable controller-runtime metrics server.
355+ BindAddress : "0" ,
356+ },
357+ LeaderElection : false ,
353358 // Specify that Secrets's should not be cached.
354359 Client : client.Options {
355360 Cache : & client.CacheOptions {
You can’t perform that action at this time.
0 commit comments