mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Use const value for legacyAPIServiceName
This commit is contained in:
parent
97857e8390
commit
f85899a975
@ -206,7 +206,7 @@ func (s *APIAggregator) AddAPIService(apiService *apiregistration.APIService, de
|
|||||||
|
|
||||||
proxyPath := "/apis/" + apiService.Spec.Group + "/" + apiService.Spec.Version
|
proxyPath := "/apis/" + apiService.Spec.Group + "/" + apiService.Spec.Version
|
||||||
// v1. is a special case for the legacy API. It proxies to a wider set of endpoints.
|
// v1. is a special case for the legacy API. It proxies to a wider set of endpoints.
|
||||||
if apiService.Name == "v1." {
|
if apiService.Name == legacyAPIServiceName {
|
||||||
proxyPath = "/api"
|
proxyPath = "/api"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user