mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #44260 from CaoShuFeng/apiservicesv1
Automatic merge from submit-queue Use const value for legacyAPIServiceName **Release note**: ```None ```
This commit is contained in:
commit
19b8be8b7d
@ -206,7 +206,7 @@ func (s *APIAggregator) AddAPIService(apiService *apiregistration.APIService, de
|
||||
|
||||
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.
|
||||
if apiService.Name == "v1." {
|
||||
if apiService.Name == legacyAPIServiceName {
|
||||
proxyPath = "/api"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user