Make "kubecfg -s <port> run ..." select correctly

kubecfg run creates a replication controller which sets all pods with a
replicationController= label, but then sets up a service selecting on name=
instead.  This fixes that.  kubecfg -s <port> run ... can now actually work.
I abdicate any right to an opinion on this one, I just need the tool to work

On Mon, Sep 22, 2014 at 3:51 PM, bgrant0607 <notifications@github.com>
wrote:

> In pkg/kubecfg/kubecfg.go:
>
> > @@ -255,7 +255,7 @@ func createService(name string, port int, client client.Interface) (*api.Service
> >  			"name": name,
> >  		},
> >  		Selector: map[string]string{
> > -			"name": name,
> > +			"replicationController": name,
>
> Fair port. The service is optional. Unfortunately, it's also weird for the
> service to carry a replicationController label. We should choose a term
> that doesn't overlap with system objects.
>
> How about kubecfgRun?
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1397/files#r17883683>
> .
>