mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Ignore unstructured log warnings
The fixes to this file included in 1.24 in 0f4d0660a7
rely on multi-line support in klog not present in the version used in
1.23
This commit is contained in:
parent
4da1f79f99
commit
84fde398c4
2 changed files with 3 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ func LogOrWriteConfig(fileName string, cfg *config.KubeSchedulerConfiguration, c
|
|||
}
|
||||
|
||||
if klog.V(2).Enabled() {
|
||||
// nolint:logcheck // Ignore unstructured log lines in release branch
|
||||
klog.Info("Using component config", "\n-------------------------Configuration File Contents Start Here---------------------- \n", buf.String(), "\n------------------------------------Configuration File Contents End Here---------------------------------\n")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ func (d *CacheDumper) dumpNodes() {
|
|||
dump := d.cache.Dump()
|
||||
klog.InfoS("Dump of cached NodeInfo")
|
||||
for name, nodeInfo := range dump.Nodes {
|
||||
// nolint:logcheck // Ignore unstructured log lines in release branch
|
||||
klog.Info(d.printNodeInfo(name, nodeInfo))
|
||||
}
|
||||
}
|
||||
|
|
@ -57,6 +58,7 @@ func (d *CacheDumper) dumpSchedulingQueue() {
|
|||
for _, p := range pendingPods {
|
||||
podData.WriteString(printPod(p))
|
||||
}
|
||||
// nolint:logcheck // Ignore unstructured log lines in release branch
|
||||
klog.Infof("Dump of scheduling queue:\n%s", podData.String())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue