Merge pull request #75781 from roycaihw/fix/openapi-aggregator-log

kube-aggregator: bump openapi aggregation log level for delegation targets
This commit is contained in:
Kubernetes Prow Robot 2019-04-01 10:03:13 -07:00 committed by GitHub
commit a0e71b49b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,13 @@ func (c *AggregationController) processNextWorkItem() bool {
return false
}
klog.Infof("OpenAPI AggregationController: Processing item %s", key)
if aggregator.IsLocalAPIService(key.(string)) {
// for local delegation targets that are aggregated once per second, log at
// higher level to avoid flooding the log
klog.V(5).Infof("OpenAPI AggregationController: Processing item %s", key)
} else {
klog.Infof("OpenAPI AggregationController: Processing item %s", key)
}
action, err := c.syncHandler(key.(string))
if err == nil {