Add EventQueue and refactor router frontend to use client/cache

That should be covered by other code (initial state)


> On Nov 25, 2014, at 1:42 PM, Paul <notifications@github.com> wrote:
> 
> In pkg/router/controller/factory/factory.go:
> 
> > +			eventType, obj := routeEventQueue.Pop()
> > +			return eventType, obj.(*routeapi.Route)
> > +		},
> > +	}
> > +}
> > +
> > +type routeLW struct {
> > +	client osclient.Interface
> > +}
> > +
> > +func (lw *routeLW) List() (runtime.Object, error) {
> > +	return lw.client.Routes(kapi.NamespaceAll).List(labels.Everything(), labels.Everything())
> > +}
> > +
> > +func (lw *routeLW) Watch(resourceVersion string) (watch.Interface, error) {
> > +	return lw.client.Routes(kapi.NamespaceAll).Watch(labels.Everything(), labels.Everything(), resourceVersion)
> Should this be the empty string as well to pick up routes as adds?
> 
> —
> Reply to this email directly or view it on GitHub.
>