<!-- Pro-tip: You can leave this block commented, and it still works! Select the appropriate areas for your issue: /area API Classify what kind of issue this is: /kind bug --> ## Expected Behavior Webhook memory usage should remain somewhat linear with the resources that are being **_watched_** ## Actual Behavior @sravankumar777 reported high memory usage here: https://github.com/knative/serving/issues/7195 I think it's because our informers are watching _all_ secrets here: https://github.com/knative/pkg/blob/master/webhook/certificates/controller.go#L59 ## Steps to Reproduce the Problem 1. See https://github.com/knative/serving/issues/7195 ## Additional Info We should ensure we're scoping other informers appropriately as well
Expected Behavior
Webhook memory usage should remain somewhat linear with the resources that are being watched
Actual Behavior
@sravankumar777 reported high memory usage here: knative/serving#7195
I think it's because our informers are watching all secrets here: https://github.com/knative/pkg/blob/master/webhook/certificates/controller.go#L59
Steps to Reproduce the Problem
Additional Info
We should ensure we're scoping other informers appropriately as well