|
...
|
...
|
@@ -229,7 +229,7 @@ func (c *KubeConfig) Run() {
|
|
229
|
229
|
"imageRepositoryMappings": {"ImageRepositoryMapping", client.RESTClient},
|
|
230
|
230
|
}
|
|
231
|
231
|
|
|
232
|
|
- matchFound := c.executeConfigRequest(method, clients) || c.executeAPIRequest(method, clients) || c.executeControllerRequest(method, kubeClient)
|
|
|
232
|
+ matchFound := c.executeConfigRequest(method, clients) || c.executeControllerRequest(method, kubeClient) || c.executeAPIRequest(method, clients)
|
|
233
|
233
|
if matchFound == false {
|
|
234
|
234
|
glog.Fatalf("Unknown command %s", method)
|
|
235
|
235
|
}
|
|
...
|
...
|
@@ -381,7 +381,7 @@ func (c *KubeConfig) executeAPIRequest(method string, clients ClientMappings) bo
|
|
381
|
381
|
func (c *KubeConfig) executeControllerRequest(method string, client *kubeclient.Client) bool {
|
|
382
|
382
|
parseController := func() string {
|
|
383
|
383
|
if len(c.Args) != 2 {
|
|
384
|
|
- glog.Fatal("usage: kubecfg [OPTIONS] stop|rm|rollingupdate <controller>")
|
|
|
384
|
+ glog.Fatal("usage: kubecfg [OPTIONS] stop|rm|rollingupdate|run|resize <controller>")
|
|
385
|
385
|
}
|
|
386
|
386
|
return c.Arg(1)
|
|
387
|
387
|
}
|