Merge pull request #115233 from pohly/kube-proxy-contextual-logging

kube-proxy: support the logging feature gates
This commit is contained in:
Kubernetes Prow Robot 2023-01-23 00:26:10 -08:00 committed by GitHub
commit aa5f462f5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ import (
componentbaseconfig "k8s.io/component-base/config"
"k8s.io/component-base/configz"
"k8s.io/component-base/logs"
logsapi "k8s.io/component-base/logs/api/v1"
metricsfeatures "k8s.io/component-base/metrics/features"
"k8s.io/component-base/metrics/legacyregistry"
"k8s.io/component-base/metrics/prometheus/slis"
@ -89,6 +90,7 @@ import (
func init() {
utilruntime.Must(metricsfeatures.AddFeatureGates(utilfeature.DefaultMutableFeatureGate))
logsapi.AddFeatureGates(utilfeature.DefaultMutableFeatureGate)
}
// proxyRun defines the interface to run a specified ProxyServer