Merge pull request #6516 from ncdc/fix-exec-portforward-proxy-resource

Fix exec/portforward minions->nodes
This commit is contained in:
Clayton Coleman 2015-04-07 11:47:46 -04:00
commit 31b7f75c60
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ func RunExec(f *Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, cmd *cobra.C
req := client.RESTClient.Get().
Prefix("proxy").
Resource("minions").
Resource("nodes").
Name(pod.Spec.Host).
Suffix("exec", namespace, podName, containerName)

View File

@ -104,7 +104,7 @@ func RunPortForward(f *Factory, cmd *cobra.Command, args []string) error {
req := client.RESTClient.Get().
Prefix("proxy").
Resource("minions").
Resource("nodes").
Name(pod.Spec.Host).
Suffix("portForward", namespace, podName)