mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
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:
@@ -134,7 +134,7 @@ func RunExec(f *Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, cmd *cobra.C
|
|||||||
|
|
||||||
req := client.RESTClient.Get().
|
req := client.RESTClient.Get().
|
||||||
Prefix("proxy").
|
Prefix("proxy").
|
||||||
Resource("minions").
|
Resource("nodes").
|
||||||
Name(pod.Spec.Host).
|
Name(pod.Spec.Host).
|
||||||
Suffix("exec", namespace, podName, containerName)
|
Suffix("exec", namespace, podName, containerName)
|
||||||
|
|
||||||
|
@@ -104,7 +104,7 @@ func RunPortForward(f *Factory, cmd *cobra.Command, args []string) error {
|
|||||||
|
|
||||||
req := client.RESTClient.Get().
|
req := client.RESTClient.Get().
|
||||||
Prefix("proxy").
|
Prefix("proxy").
|
||||||
Resource("minions").
|
Resource("nodes").
|
||||||
Name(pod.Spec.Host).
|
Name(pod.Spec.Host).
|
||||||
Suffix("portForward", namespace, podName)
|
Suffix("portForward", namespace, podName)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user