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:
Kubernetes Submit Queue 2017-04-10 05:07:59 -07:00 committed by GitHub
commit 19b8be8b7d

View File

@ -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"
}