1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/pkg/webhookconfig
Thomas Hartland 6e9609409b
Use non-blocking channel send for UpdateWebhookChan (#4204)
If the channel send is blocked then there is already an
update queued, and there is no point waiting to queue
another one.

In profiling, the channel send in monitor.go has been
seen to "leak" goroutines as the channel is not being
read from fast enough, but the root cause is not known.

Signed-off-by: Thomas Hartland <thomas.hartland@diamond.ac.uk>
2022-07-12 00:21:20 +08:00
..
common.go chore: make k8s api import aliases consistent (#3950) 2022-05-17 22:14:31 +08:00
configmanager.go feat: policy status for autogen rules (#4173) 2022-07-03 15:09:18 -07:00
configmanager_test.go refactor: webhookconfig package (part 3) (#3834) 2022-05-09 14:31:35 +00:00
monitor.go Use non-blocking channel send for UpdateWebhookChan (#4204) 2022-07-12 00:21:20 +08:00
registration.go Use non-blocking channel send for UpdateWebhookChan (#4204) 2022-07-12 00:21:20 +08:00
status.go chore: enable gofmt and gofumpt linters (#3931) 2022-05-17 06:19:03 +00:00