Add Build watch support

Fortunately for everyone the penalty for bad abstraction is only excommunication.


> On Oct 30, 2014, at 9:42 AM, Paul Morie <notifications@github.com> wrote:
> 
> In pkg/build/registry/build/rest.go:
> 
> > @@ -98,3 +99,15 @@ func (r *REST) Update(ctx kubeapi.Context, obj runtime.Object) (<-chan runtime.O
> >  		return build, nil
> >  	}), nil
> >  }
> > +
> > +// Watch begins watching for new, changed, or deleted Builds.
> > +func (s *REST) Watch(ctx kubeapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error) {
> > +	return s.registry.WatchBuilds(resourceVersion, func(build *api.Build) bool {
> I think this calls for a general work stoppage.
> 
> —
> Reply to this email directly or view it on GitHub.