File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
pkg/server/egressselector Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,18 @@ import (
3636 utilnet "k8s.io/apimachinery/pkg/util/net"
3737 "k8s.io/apiserver/pkg/apis/apiserver"
3838 egressmetrics "k8s.io/apiserver/pkg/server/egressselector/metrics"
39+ compbasemetrics "k8s.io/component-base/metrics"
3940 "k8s.io/component-base/tracing"
4041 "k8s.io/klog/v2"
4142 client "sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/client"
4243)
4344
4445var directDialer utilnet.DialFunc = http .DefaultTransport .(* http.Transport ).DialContext
4546
47+ func init () {
48+ client .Metrics .RegisterMetrics (compbasemetrics .NewKubeRegistry ().Registerer ())
49+ }
50+
4651// EgressSelector is the map of network context type to context dialer, for network egress.
4752type EgressSelector struct {
4853 egressToDialer map [EgressType ]utilnet.DialFunc
You can’t perform that action at this time.
0 commit comments