Support the subresource of service proxy

This commit is contained in:
feihujiang
2015-11-18 11:42:03 +08:00
parent bcabc096f2
commit ac9f890238
31 changed files with 6434 additions and 4240 deletions

View File

@@ -52,11 +52,12 @@ var _ = Describe("Kubernetes Dashboard", func() {
By("Checking to make sure we get a response from the kubernetes-dashboard.")
err = wait.Poll(poll, serverStartTimeout, func() (bool, error) {
var status int
proxyRequest, errProxy := getServicesProxyRequest(f.Client, f.Client.Get())
if errProxy != nil {
Logf("Get services proxy request failed: %v", errProxy)
}
// Query against the proxy URL for the kube-ui service.
err := f.Client.Get().
Namespace(uiNamespace).
Prefix("proxy").
Resource("services").
err := proxyRequest.Namespace(uiNamespace).
Name(uiServiceName).
Timeout(singleCallTimeout).
Do().