mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Wire up feature_gate.go with metrics via AddMetrics method
wire up feature_gate.go with metrics via AddMetrics method Change-Id: I9b4f6b04c0f4eb9bcb198b16284393d21c774ad8 wire in metrics to kubernetes components Change-Id: I6d4ef8b26f149f62b03f32d1658f04f3056fe4dc rename metric since we're using the value to determine if enabled is true or false Change-Id: I13a6b6df90a5ffb4b9c5b34fa187562413bea029 Update staging/src/k8s.io/component-base/featuregate/feature_gate.go Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
@@ -484,7 +484,8 @@ with the apiserver API to configure the proxy.`,
|
||||
if err := opts.Validate(); err != nil {
|
||||
return fmt.Errorf("failed validate: %w", err)
|
||||
}
|
||||
|
||||
// add feature enablement metrics
|
||||
utilfeature.DefaultMutableFeatureGate.AddMetrics()
|
||||
if err := opts.Run(); err != nil {
|
||||
klog.ErrorS(err, "Error running ProxyServer")
|
||||
return err
|
||||
|
Reference in New Issue
Block a user