Updating kubectl to use POST instead of GET

This commit is contained in:
nikhiljindal
2015-07-01 16:47:02 -07:00
parent 09df440b79
commit b38d8b18a5
4 changed files with 22 additions and 48 deletions

View File

@@ -117,7 +117,7 @@ func RunPortForward(f *cmdutil.Factory, cmd *cobra.Command, args []string, fw po
close(stopCh)
}()
req := client.RESTClient.Get().
req := client.RESTClient.Post().
Resource("pods").
Namespace(namespace).
Name(pod.Name).