AbsPath should be compatible with proxy-prefixes:

- replace Config.Prefix with .Host and .APIPath
- Request .path promoted to .pathPrefix, .baseURL holds required prefix
This commit is contained in:
James DeFelice
2016-01-06 23:59:54 +00:00
parent 9724447456
commit 75f487f7bf
17 changed files with 158 additions and 119 deletions

View File

@@ -94,7 +94,7 @@ func setConfigDefaults(config *unversioned.Config) error {
if err != nil {
return err
}
config.Prefix = "/apis"
config.APIPath = "/apis"
if config.UserAgent == "" {
config.UserAgent = unversioned.DefaultKubernetesUserAgent()
}

View File

@@ -139,7 +139,7 @@ func setConfigDefaults(config *unversioned.Config) error {
if err != nil {
return err
}
config.Prefix = "/api"
config.APIPath = "/api"
if config.UserAgent == "" {
config.UserAgent = unversioned.DefaultKubernetesUserAgent()
}