mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
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:
@@ -69,7 +69,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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user