add LoggingConfiguration struct to component-base/config

This commit is contained in:
amash
2020-06-26 01:03:27 +04:30
parent ac8d2e8978
commit 3ab25f1876
22 changed files with 102 additions and 97 deletions

View File

@@ -161,8 +161,8 @@ func ValidateKubeletConfiguration(kc *kubeletconfig.KubeletConfiguration) error
allErrors = append(allErrors, metrics.ValidateShowHiddenMetricsVersion(kc.ShowHiddenMetricsForVersion)...)
logOption := logs.NewOptions()
if kc.LoggingConfig.LoggingFormat != "" {
logOption.LogFormat = kc.LoggingConfig.LoggingFormat
if kc.Logging.Format != "" {
logOption.LogFormat = kc.Logging.Format
}
allErrors = append(allErrors, logOption.Validate()...)