kubectl proxy: append context host path to request path

Signed-off-by: fabiankramm <fab.kramm@googlemail.com>
This commit is contained in:
fabiankramm
2020-12-16 17:37:44 +01:00
parent bce5d7a015
commit b1a6f8cdf9
6 changed files with 81 additions and 17 deletions

View File

@@ -57,7 +57,7 @@ func TestWatchClientTimeout(t *testing.T) {
})
t.Run("kubectl proxy", func(t *testing.T) {
kubectlProxyServer, err := kubectlproxy.NewServer("", "/", "/static/", nil, &restclient.Config{Host: s.URL, Timeout: 2 * time.Second}, 0)
kubectlProxyServer, err := kubectlproxy.NewServer("", "/", "/static/", nil, &restclient.Config{Host: s.URL, Timeout: 2 * time.Second}, 0, false)
if err != nil {
t.Fatal(err)
}