Skip to content

Commit

Permalink
Use const value for legacyAPIServiceName
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoShuFeng committed Apr 10, 2017
1 parent 97857e8 commit f85899a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit f85899a

Please sign in to comment.