aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/apiproxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/kubernetes/apiproxy.go')
-rw-r--r--plugin/kubernetes/apiproxy.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/kubernetes/apiproxy.go b/plugin/kubernetes/apiproxy.go
index 196ca5e60..59a569885 100644
--- a/plugin/kubernetes/apiproxy.go
+++ b/plugin/kubernetes/apiproxy.go
@@ -65,7 +65,9 @@ func (p *proxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
func (p *apiProxy) Run() {
p.handler.Start()
- p.Serve(p.listener)
+ go func() {
+ p.Serve(p.listener)
+ }()
}
func (p *apiProxy) Stop() {