func()

in readers/apiserver/watchlist/internal/watchlist/watchlist.go [324:334]


func (r *Reader) createPodsWatcher(ctx context.Context) []spawnWatcher {
	return []spawnWatcher{
		func(options metav1.ListOptions) (watch.Interface, error) {
			wi, err := r.clientset.CoreV1().Pods("").Watch(ctx, options)
			if err != nil {
				return nil, err
			}
			return wi, nil
		},
	}
}