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:
@@ -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()
|
||||
}
|
||||
|
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user