Skip to content

Commit

Permalink
Merge pull request #16270 from ixdy/boskos-cache-client-disable-metrics
Browse files Browse the repository at this point in the history
boskos: disable controller-runtime manager metrics
  • Loading branch information
k8s-ci-robot committed Feb 13, 2020
2 parents 7d948dc + 7270152 commit 6bb357d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boskos/crds/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ func (o *KubernetesClientOptions) CacheBackedClient(namespace string, startCache
return nil, fmt.Errorf("failed to create CRDs: %v", err)
}

mgr, err := manager.New(cfg, manager.Options{LeaderElection: false, Namespace: namespace})
mgr, err := manager.New(cfg, manager.Options{
LeaderElection: false,
Namespace: namespace,
MetricsBindAddress: "0",
})
if err != nil {
return nil, fmt.Errorf("failed to construct manager: %v", err)
}
Expand Down

0 comments on commit 6bb357d

Please sign in to comment.