fix wait.go

use *resource.Info.Namespace/Name because runtime.Object is a Interface

Signed-off-by: fengxusong <fengxsong@outlook.com>
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/6608/head
fengxsong 5 years ago committed by Matthew Fisher
parent 3b280ab038
commit cf728f4076
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -66,7 +66,7 @@ func (w *waiter) waitForResources(created ResourceList) error {
return false, err
}
case *appsv1.Deployment, *appsv1beta1.Deployment, *appsv1beta2.Deployment, *extensionsv1beta1.Deployment:
currentDeployment, err := w.c.AppsV1().Deployments(value.Namespace).Get(value.Name, metav1.GetOptions{})
currentDeployment, err := w.c.AppsV1().Deployments(v.Namespace).Get(v.Name, metav1.GetOptions{})
if err != nil {
return false, err
}

Loading…
Cancel
Save