Merge pull request #115950 from SataQiu/fix-kubelet-log-20230222

Fix a bug where the KubeletConfiguration is not printed correctly in the log
This commit is contained in:
Kubernetes Prow Robot
2023-05-10 08:30:59 -07:00
committed by GitHub

View File

@@ -256,7 +256,7 @@ is checked every 20 seconds (also configurable with a flag).`,
config.StaticPodURLHeader[k] = []string{"<masked>"}
}
// log the kubelet's config for inspection
klog.V(5).InfoS("KubeletConfiguration", "configuration", config)
klog.V(5).InfoS("KubeletConfiguration", "configuration", klog.Format(config))
// set up signal context for kubelet shutdown
ctx := genericapiserver.SetupSignalContext()