When running the feature gate ProxyAllNamespaced there are several error messages of the reflector trying to WATCH resources that don't have this capability.
A generic example is the PodMetrics one which is a special API object that doesn't provide the WATCH verb.
How to reproduce
start Capsule Proxy with the ProxyAllNamespaced=true feature gate
check the logs
Expected behaviour
APIs with no WATCH capabilities should ignored.
Logs
E0606 14:20:43.102227 1 reflector.go:147] k8s.io/client-go@v0.28.4/tools/cache/reflector.go:229: Failed to watch metrics.k8s.io/v1beta1, Kind=PodMetrics: the server does not allow this method on the requested resource
Bug description
When running the feature gate
ProxyAllNamespaced
there are several error messages of the reflector trying toWATCH
resources that don't have this capability.A generic example is the
PodMetrics
one which is a special API object that doesn't provide theWATCH
verb.How to reproduce
ProxyAllNamespaced=true
feature gateExpected behaviour
APIs with no
WATCH
capabilities should ignored.Logs
Additional context