Blob Blame History Raw
From 6900ee592a90a51b45ccb68083f932300584490e Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup@redhat.com>
Date: Wed, 7 Sep 2016 13:47:35 +0200
Subject: [PATCH] reenable /ui

---
 pkg/genericapiserver/genericapiserver.go | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pkg/genericapiserver/genericapiserver.go b/pkg/genericapiserver/genericapiserver.go
index fd27de1..ec6f3f4 100644
--- a/pkg/genericapiserver/genericapiserver.go
+++ b/pkg/genericapiserver/genericapiserver.go
@@ -45,6 +45,7 @@ import (
 	"k8s.io/kubernetes/pkg/registry/generic/registry"
 	ipallocator "k8s.io/kubernetes/pkg/registry/service/ipallocator"
 	"k8s.io/kubernetes/pkg/runtime"
+	"k8s.io/kubernetes/pkg/ui"
 	"k8s.io/kubernetes/pkg/util"
 	"k8s.io/kubernetes/pkg/util/crypto"
 	utilnet "k8s.io/kubernetes/pkg/util/net"
@@ -444,9 +445,9 @@ func (s *GenericAPIServer) init(c *Config) {
 	if c.EnableLogsSupport {
 		apiserver.InstallLogsSupport(s.MuxHelper)
 	}
-	// if c.EnableUISupport {
-	// 	ui.InstallSupport(s.MuxHelper, s.enableSwaggerSupport && s.enableSwaggerUI)
-	// }
+	if c.EnableUISupport {
+		ui.InstallSupport(s.MuxHelper, s.enableSwaggerSupport && s.enableSwaggerUI)
+	}
 
 	if c.EnableProfiling {
 		s.mux.HandleFunc("/debug/pprof/", pprof.Index)
-- 
1.9.3