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:
Jordan Liggitt 2022-12-17 05:27:09 +00:00
parent 4da1f79f99
commit 84fde398c4
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -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")
}

View file

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