Remove proxy from kubernetes file (#2668)

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2019-03-11 12:47:29 -07:00 committed by Miek Gieben
parent b67e4c47c2
commit 162c3dd95d
3 changed files with 0 additions and 82 deletions

View file

@ -80,9 +80,6 @@ func setup(c *caddy.Controller) error {
func (k *Kubernetes) RegisterKubeCache(c *caddy.Controller) {
c.OnStartup(func() error {
go k.APIConn.Run()
if k.APIProxy != nil {
k.APIProxy.Run()
}
timeout := time.After(5 * time.Second)
ticker := time.NewTicker(100 * time.Millisecond)
@ -99,9 +96,6 @@ func (k *Kubernetes) RegisterKubeCache(c *caddy.Controller) {
})
c.OnShutdown(func() error {
if k.APIProxy != nil {
k.APIProxy.Stop()
}
return k.APIConn.Stop()
})
}