From 7fe5b0bb1f34735859d611e170fa8709adac73ea Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 3 Jan 2018 19:11:28 +0800 Subject: Update k8s client-go to v6.0.0 (#1340) * Update k8s client-go to v6.0.0 This fix updates k8s client-go to v6.0.0 as CoreDNS is supported in 1.9 and v6.0.0 is the recommended version. There are quite some massive changes that need to be made: 1. k8s.io/client-go/pkg/api/v1 has been changed to k8s.io/api/v1 (repo changed from `client-go` to `api`) 2. kubernetes.Clientset adds one extra layer, so that `kubernetes.Clientset.Services()` and like has been changed to `kubernetes.Clientset.CoreV1().Services()` Also, we have to stick with specific commits of `k8s.io/apimachinery` and the newly introduced `k8s.io/api` because go dep still could not figure out the right version to fetch. Signed-off-by: Yong Tang * Update vendor with `dep ensure --update` and `dep prune` Signed-off-by: Yong Tang --- plugin/kubernetes/ns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/kubernetes/ns.go') diff --git a/plugin/kubernetes/ns.go b/plugin/kubernetes/ns.go index 16fa36994..af5c86450 100644 --- a/plugin/kubernetes/ns.go +++ b/plugin/kubernetes/ns.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/miekg/dns" - api "k8s.io/client-go/pkg/api/v1" + api "k8s.io/api/core/v1" ) func isDefaultNS(name, zone string) bool { -- cgit v1.2.3