Add watch method for build configs

Adds watch for build configs and fixes some comments for watches on builds.
All the label selectors should be changed to Name


> On Nov 21, 2014, at 11:47 AM, Cesar Wong <notifications@github.com> wrote:
> 
> In pkg/build/registry/etcd/etcd.go:
> 
> > +
> > +// WatchBuildConfigs begins watching for new, changed, or deleted BuildConfigs.
> > +func (r *Etcd) WatchBuildConfigs(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error) {
> > +	version, err := parseWatchResourceVersion(resourceVersion, "buildConfig")
> > +	if err != nil {
> > +		return nil, err
> > +	}
> > +
> > +	return r.WatchList(makeBuildConfigListKey(ctx), version, func(obj runtime.Object) bool {
> > +		buildConfig, ok := obj.(*api.BuildConfig)
> > +		if !ok {
> > +			glog.Errorf("Unexpected object during buildConfig watch: %#v", obj)
> > +			return false
> > +		}
> > +		fields := labels.Set{
> > +			"ID": buildConfig.ID,
> Should the label in WatchBuilds also be changed? Or even better yet, should we abandon ID and use Name?
> 
> —
> Reply to this email directly or view it on GitHub.
>