fix: Core() is deprecated use CoreV1() instead.

This commit is contained in:
Mengxin Liu 2017-11-13 23:21:15 +08:00 committed by oilbeater
parent 94487ca1b7
commit b3cec74e79
4 changed files with 6 additions and 6 deletions

View file

@ -73,7 +73,7 @@ func (f *Framework) EnsureDeployment(deployment *extensions.Deployment) (*extens
func (f *Framework) WaitForPodsReady(timeout time.Duration, expectedReplicas int, opts metav1.ListOptions) error {
return wait.Poll(time.Second, timeout, func() (bool, error) {
pl, err := f.KubeClientSet.Core().Pods(f.Namespace.Name).List(opts)
pl, err := f.KubeClientSet.CoreV1().Pods(f.Namespace.Name).List(opts)
if err != nil {
return false, err
}