Add --experimental-logging-sanitization flag to Kubelet

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
Marek Siarkowicz
2020-11-09 16:24:07 +01:00
parent f170d33e1f
commit 8e60d75c15
7 changed files with 15 additions and 3 deletions

View File

@@ -410,6 +410,7 @@ func UnsecuredDependencies(s *options.KubeletServer, featureGate featuregate.Fea
func Run(ctx context.Context, s *options.KubeletServer, kubeDeps *kubelet.Dependencies, featureGate featuregate.FeatureGate) error {
logOption := logs.NewOptions()
logOption.LogFormat = s.Logging.Format
logOption.LogSanitization = s.Logging.Sanitization
logOption.Apply()
// To help debugging, immediately log version
klog.Infof("Version: %+v", version.Get())