use the core client with version

Kubernetes-commit: edce96c5b6bd4cee6ae6c05934e5078b0920d143
This commit is contained in:
supereagle 2017-07-25 12:35:12 +08:00 committed by Kubernetes Publisher
parent 687e8a49bc
commit 24f566f085

View File

@ -162,7 +162,7 @@ func main() {
}
// create the pod watcher
podListWatcher := cache.NewListWatchFromClient(clientset.Core().RESTClient(), "pods", v1.NamespaceDefault, fields.Everything())
podListWatcher := cache.NewListWatchFromClient(clientset.CoreV1().RESTClient(), "pods", v1.NamespaceDefault, fields.Everything())
// create the workqueue
queue := workqueue.NewRateLimitingQueue(workqueue.DefaultControllerRateLimiter())