Remove proxy from kubernetes file (#2668)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
b67e4c47c2
commit
162c3dd95d
3 changed files with 0 additions and 82 deletions
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue