|
|
55f026 |
From 6900ee592a90a51b45ccb68083f932300584490e Mon Sep 17 00:00:00 2001
|
|
|
19490a |
From: Jan Chaloupka <jchaloup@redhat.com>
|
|
|
55f026 |
Date: Wed, 7 Sep 2016 13:47:35 +0200
|
|
|
cbb2ea |
Subject: [PATCH] reenable /ui
|
|
|
19490a |
|
|
|
19490a |
---
|
|
|
cbb2ea |
pkg/genericapiserver/genericapiserver.go | 7 ++++---
|
|
|
cbb2ea |
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
19490a |
|
|
|
cbb2ea |
diff --git a/pkg/genericapiserver/genericapiserver.go b/pkg/genericapiserver/genericapiserver.go
|
|
|
55f026 |
index fd27de1..ec6f3f4 100644
|
|
|
cbb2ea |
--- a/pkg/genericapiserver/genericapiserver.go
|
|
|
cbb2ea |
+++ b/pkg/genericapiserver/genericapiserver.go
|
|
|
55f026 |
@@ -45,6 +45,7 @@ import (
|
|
|
55f026 |
"k8s.io/kubernetes/pkg/registry/generic/registry"
|
|
|
cbb2ea |
ipallocator "k8s.io/kubernetes/pkg/registry/service/ipallocator"
|
|
|
cbb2ea |
"k8s.io/kubernetes/pkg/runtime"
|
|
|
19490a |
+ "k8s.io/kubernetes/pkg/ui"
|
|
|
19490a |
"k8s.io/kubernetes/pkg/util"
|
|
|
55f026 |
"k8s.io/kubernetes/pkg/util/crypto"
|
|
|
cbb2ea |
utilnet "k8s.io/kubernetes/pkg/util/net"
|
|
|
55f026 |
@@ -444,9 +445,9 @@ func (s *GenericAPIServer) init(c *Config) {
|
|
|
19490a |
if c.EnableLogsSupport {
|
|
|
cbb2ea |
apiserver.InstallLogsSupport(s.MuxHelper)
|
|
|
19490a |
}
|
|
|
cbb2ea |
- // if c.EnableUISupport {
|
|
|
55f026 |
- // ui.InstallSupport(s.MuxHelper, s.enableSwaggerSupport && s.enableSwaggerUI)
|
|
|
cbb2ea |
- // }
|
|
|
19490a |
+ if c.EnableUISupport {
|
|
|
55f026 |
+ ui.InstallSupport(s.MuxHelper, s.enableSwaggerSupport && s.enableSwaggerUI)
|
|
|
19490a |
+ }
|
|
|
19490a |
|
|
|
19490a |
if c.EnableProfiling {
|
|
|
cbb2ea |
s.mux.HandleFunc("/debug/pprof/", pprof.Index)
|
|
|
19490a |
--
|
|
|
19490a |
1.9.3
|
|
|
19490a |
|