mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #6516 from ncdc/fix-exec-portforward-proxy-resource
Fix exec/portforward minions->nodes
This commit is contained in:
commit
31b7f75c60
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user