mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
add LoggingConfiguration struct to component-base/config
This commit is contained in:
@@ -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()...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user