Update k8s.io/[api|apimachinery|client-go] to v0.18.0 (#3796)

* Update k8s.io/[api|apimachinery|client-go] to v0.18.0

This PR updates k8s.io/[api|apimachinery|client-go] to v0.18.0

This PR closes 3791
This PR closes 3792
This PR closes 3793

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Fix test failures

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Fix failed tests

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Fix test failure

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2020-03-30 11:10:41 -07:00 committed by GitHub
parent 8bbfa19223
commit ebbfffaf9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 93 additions and 76 deletions

View file

@ -1,6 +1,7 @@
package kubernetes
import (
"context"
"errors"
"fmt"
"os"
@ -38,7 +39,7 @@ func setup(c *caddy.Controller) error {
return plugin.Error("kubernetes", err)
}
err = k.InitKubeCache()
err = k.InitKubeCache(context.Background())
if err != nil {
return plugin.Error("kubernetes", err)
}