add loggingConfig struct to kubelet config

This commit is contained in:
amash
2020-06-16 15:17:14 +04:30
parent ba8189a4f2
commit ac8d2e8978
12 changed files with 102 additions and 14 deletions

View File

@@ -405,8 +405,8 @@ func UnsecuredDependencies(s *options.KubeletServer, featureGate featuregate.Fea
// not be generated.
func Run(s *options.KubeletServer, kubeDeps *kubelet.Dependencies, featureGate featuregate.FeatureGate, stopCh <-chan struct{}) error {
logOption := logs.NewOptions()
if s.LogFormat != "" {
logOption.LogFormat = s.LogFormat
if s.LoggingConfig.LoggingFormat != "" {
logOption.LogFormat = s.LoggingConfig.LoggingFormat
}
logOption.Apply()
// To help debugging, immediately log version