fix a bug where the KubeletConfiguration is not printed correctly in the log

This commit is contained in:
SataQiu 2023-05-10 22:28:39 +08:00
parent a5575425b0
commit 164113bc1c

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()