diff --git a/pkg/controller/observer.go b/pkg/controller/observer.go index 5f891bc..d3bff7d 100644 --- a/pkg/controller/observer.go +++ b/pkg/controller/observer.go @@ -110,7 +110,7 @@ func (c *Observer) refresh() error { client := cl.Resource(res.ar.DeepCopy(), metav1.NamespaceAll) - selector := metav1.ListOptions{} + selector := metav1.ListOptions{LabelSelector: c.config.Filter} lw := &cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { return client.List(selector)