kubernetes/pkg/scheduler/framework/plugins
Patrick Ohly 9eaa2dc554 avoid klog Info calls without verbosity
In the following code pattern, the log message will get logged with v=0 in JSON
output although conceptually it has a higher verbosity:

   if klog.V(5).Enabled() {
       klog.Info("hello world")
   }

Having the actual verbosity in the JSON output is relevant, for example for
filtering out only the important info messages. The solution is to use
klog.V(5).Info or something similar.

Whether the outer if is necessary at all depends on how complex the parameters
are. The return value of klog.V can be captured in a variable and be used
multiple times to avoid the overhead for that function call and to avoid
repeating the verbosity level.
2022-01-12 07:48:36 +01:00
..
defaultbinder Define in-tree scheduler plugin names in separate pkg to break a cyclic depednecy when moving plugin defaulting to CC 2021-06-09 15:36:09 -04:00
defaultpreemption clear pod's .status.nominatedNodeName when necessary 2021-12-16 10:55:13 -08:00
examples migrated preemption.go, stateful.go, resource_allocation.go to structured logging 2021-11-08 22:52:47 +05:30
feature generic ephemeral volume: graduation to GA 2021-10-11 20:54:20 +02:00
helper Simplify the formula used in the RequestedToCapacityRatio plugin 2021-06-22 17:11:26 +08:00
imagelocality Define in-tree scheduler plugin names in separate pkg to break a cyclic depednecy when moving plugin defaulting to CC 2021-06-09 15:36:09 -04:00
interpodaffinity Merge pull request #105931 from mengjiao-liu/structured_logging_scheduler_part2 2021-10-29 12:13:23 -07:00
names refactor scheudler's node resource plugins 2021-11-03 00:52:23 +08:00
nodeaffinity fix typo in node_affinity_test 2021-09-10 15:10:24 +08:00
nodename Define in-tree scheduler plugin names in separate pkg to break a cyclic depednecy when moving plugin defaulting to CC 2021-06-09 15:36:09 -04:00
nodeports Define in-tree scheduler plugin names in separate pkg to break a cyclic depednecy when moving plugin defaulting to CC 2021-06-09 15:36:09 -04:00
noderesources avoid klog Info calls without verbosity 2022-01-12 07:48:36 +01:00
nodeunschedulable Define in-tree scheduler plugin names in separate pkg to break a cyclic depednecy when moving plugin defaulting to CC 2021-06-09 15:36:09 -04:00
nodevolumelimits Add support for Portworx to csi-translation lib 2021-11-16 13:26:09 -08:00
podtopologyspread Merge pull request #107009 from kerthcet/feature/fix-wrong-calculate-in-podTopologySpread 2022-01-11 08:33:16 -08:00
queuesort Define in-tree scheduler plugin names in separate pkg to break a cyclic depednecy when moving plugin defaulting to CC 2021-06-09 15:36:09 -04:00
selectorspread Fix: move parallelize package to non-internal file 2021-10-21 02:39:23 +09:00
tainttoleration modify non-uniform aliases 2021-08-31 09:07:51 +08:00
testing Make parallelism as part of schedulerOptions 2021-03-09 23:25:55 +08:00
volumebinding Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00
volumerestrictions Fix: move parallelize package to non-internal file 2021-10-21 02:39:23 +09:00
volumezone Migrate scheduler files interpodaffinity/filtering.go,podtopologyspread/filtering.go, volume_zone.go to structured logging 2021-10-29 11:41:02 +08:00
README.md scheduler/framework/plugins: delete moved docs 2021-02-16 13:26:27 +00:00
registry.go Added an integration test for NodeResourcesFit scoring 2021-11-30 12:13:30 -05:00

Scheduler Framework Plugins

Moved here.