mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
use 'masked' instead of 'redacted'
This commit is contained in:
parent
0841b13e37
commit
046ec59a8b
@ -266,7 +266,7 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
|
|||||||
// make the kubelet's config safe for logging
|
// make the kubelet's config safe for logging
|
||||||
config := kubeletServer.KubeletConfiguration.DeepCopy()
|
config := kubeletServer.KubeletConfiguration.DeepCopy()
|
||||||
for k := range config.StaticPodURLHeader {
|
for k := range config.StaticPodURLHeader {
|
||||||
config.StaticPodURLHeader[k] = []string{"<redacted>"}
|
config.StaticPodURLHeader[k] = []string{"<masked>"}
|
||||||
}
|
}
|
||||||
// log the kubelet's config for inspection
|
// log the kubelet's config for inspection
|
||||||
klog.V(5).Infof("KubeletConfiguration: %#v", config)
|
klog.V(5).Infof("KubeletConfiguration: %#v", config)
|
||||||
|
Loading…
Reference in New Issue
Block a user