mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
Need to remove pods that change labels.
This commit is contained in:
@@ -55,7 +55,8 @@ func (r *PodRegistry) ListPods(selector labels.Selector) ([]api.Pod, error) {
|
||||
return filtered, nil
|
||||
}
|
||||
|
||||
func (r *PodRegistry) WatchPods(resourceVersion uint64) (watch.Interface, error) {
|
||||
func (r *PodRegistry) WatchPods(resourceVersion uint64, filter func(*api.Pod) bool) (watch.Interface, error) {
|
||||
// TODO: wire filter down into the mux; it needs access to current and previous state :(
|
||||
return r.mux.Watch(), nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user