mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Merge pull request #24474 from deads2k/fix-version-registration
Automatic merge from submit-queue stop changing the root path of the root webservice We shouldn't mutate the root path of the root webservice (see usage). Just write the path we want.
This commit is contained in:
@@ -229,7 +229,7 @@ func (m *Master) InstallAPIs(c *Config) {
|
||||
}
|
||||
|
||||
// TODO(nikhiljindal): Refactor generic parts of support services (like /versions) to genericapiserver.
|
||||
apiserver.InstallSupport(m.MuxHelper, m.RootWebService, healthzChecks...)
|
||||
webservices := apiserver.InstallSupport(m.MuxHelper, healthzChecks...)
|
||||
|
||||
if c.EnableProfiling {
|
||||
m.MuxHelper.HandleFunc("/metrics", MetricsWithReset)
|
||||
@@ -237,8 +237,9 @@ func (m *Master) InstallAPIs(c *Config) {
|
||||
m.MuxHelper.HandleFunc("/metrics", defaultMetricsHandler)
|
||||
}
|
||||
|
||||
// Install root web services
|
||||
m.HandlerContainer.Add(m.RootWebService)
|
||||
for i := range webservices {
|
||||
m.HandlerContainer.Add(webservices[i])
|
||||
}
|
||||
|
||||
// allGroups records all supported groups at /apis
|
||||
allGroups := []unversioned.APIGroup{}
|
||||
|
||||
Reference in New Issue
Block a user