Fix exec/portforward minions->nodes

Exec and port forward weren't working with v1beta3 because they were
proxying minions. Change minions to nodes. This appears to work with
v1beta1 and v1beta2 as well.
This commit is contained in:
Andy Goldstein
2015-04-07 09:48:46 -04:00
parent d6851729d2
commit 1c92133b77
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)