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.
This commit is contained in:
Tim Hockin 2014-09-22 12:39:29 -07:00
parent 0c2ea0bcf2
commit bb3900f447

View File

@ -255,7 +255,7 @@ func createService(name string, port int, client client.Interface) (*api.Service
"name": name, "name": name,
}, },
Selector: map[string]string{ Selector: map[string]string{
"name": name, "replicationController": name,
}, },
} }
svc, err := client.CreateService(svc) svc, err := client.CreateService(svc)