Merge pull request #2051 from wansir/dev

fix list namespaces
This commit is contained in:
KubeSphere CI Bot
2020-05-08 23:08:29 +08:00
committed by GitHub
5 changed files with 367 additions and 27 deletions

View File

@@ -35,8 +35,8 @@ func WithKubeAPIServer(handler http.Handler, config *rest.Config, failed proxy.E
// Do not cover k8s client authorization header
req.Header.Del("Authorization")
httpProxy := proxy.NewUpgradeAwareHandler(&s, defaultTransport, true, false, failed)
httpProxy.UpgradeTransport = proxy.NewUpgradeRequestRoundTripper(defaultTransport, defaultTransport)
httpProxy.ServeHTTP(w, req)
return
}