Support the subresource of node proxy

This commit is contained in:
feihujiang
2015-11-30 19:48:23 +08:00
parent f7be2cd2a2
commit e85253916f
24 changed files with 4937 additions and 2905 deletions

View File

@@ -282,7 +282,7 @@ var _ = Describe("Kubectl client", func() {
Failf("unable to create streaming upload. Error: %s", err)
}
subResourceProxyAvailable, err := serverVersionGTE(subResourceProxyVersion, c)
subResourceProxyAvailable, err := serverVersionGTE(subResourcePodProxyVersion, c)
if err != nil {
Failf("Unable to determine server version. Error: %s", err)
}
@@ -1284,7 +1284,7 @@ func getUDData(jpgExpected string, ns string) func(*client.Client, string) error
// getUDData validates data.json in the update-demo (returns nil if data is ok).
return func(c *client.Client, podID string) error {
Logf("validating pod %s", podID)
subResourceProxyAvailable, err := serverVersionGTE(subResourceProxyVersion, c)
subResourceProxyAvailable, err := serverVersionGTE(subResourcePodProxyVersion, c)
if err != nil {
return err
}