mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 10:48:15 +00:00
add loggingConfig struct to kubelet 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.LogFormat != "" {
|
||||
logOption.LogFormat = kc.LogFormat
|
||||
if kc.LoggingConfig.LoggingFormat != "" {
|
||||
logOption.LogFormat = kc.LoggingConfig.LoggingFormat
|
||||
}
|
||||
allErrors = append(allErrors, logOption.Validate()...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user