aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/ns_test.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2020-03-30 11:10:41 -0700
committerGravatar GitHub <noreply@github.com> 2020-03-30 11:10:41 -0700
commitebbfffaf9df7bdf3bab39c587441e9460aa4f9ef (patch)
tree7cee159d9c690122b02554c2eb8d5038099dacd5 /plugin/kubernetes/ns_test.go
parent8bbfa19223e7585084acfee58bf7a611ecb4a3d3 (diff)
downloadcoredns-ebbfffaf9df7bdf3bab39c587441e9460aa4f9ef.tar.gz
coredns-ebbfffaf9df7bdf3bab39c587441e9460aa4f9ef.tar.zst
coredns-ebbfffaf9df7bdf3bab39c587441e9460aa4f9ef.zip
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>
Diffstat (limited to 'plugin/kubernetes/ns_test.go')
-rw-r--r--plugin/kubernetes/ns_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/kubernetes/ns_test.go b/plugin/kubernetes/ns_test.go
index 19bd9b788..4e767f092 100644
--- a/plugin/kubernetes/ns_test.go
+++ b/plugin/kubernetes/ns_test.go
@@ -1,6 +1,7 @@
package kubernetes
import (
+ "context"
"net"
"testing"
@@ -102,7 +103,7 @@ func (APIConnTest) EpIndexReverse(ip string) []*object.Endpoints {
return eps
}
-func (APIConnTest) GetNodeByName(name string) (*api.Node, error) { return &api.Node{}, nil }
+func (APIConnTest) GetNodeByName(ctx context.Context, name string) (*api.Node, error) { return &api.Node{}, nil }
func (APIConnTest) GetNamespaceByName(name string) (*api.Namespace, error) {
return &api.Namespace{}, nil
}