From f55a64240f3f8fc79bf7ae8a3450619e72520e23 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Tue, 8 Oct 2019 09:42:47 -0700 Subject: [PATCH] ref(wait): remove versioned type, use unversioned instead Signed-off-by: Matthew Fisher --- pkg/kube/wait.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kube/wait.go b/pkg/kube/wait.go index 965e04b71..20d91b610 100644 --- a/pkg/kube/wait.go +++ b/pkg/kube/wait.go @@ -61,7 +61,7 @@ func (w *waiter) waitForResources(created ResourceList) error { ) switch value := AsVersioned(v).(type) { case *corev1.Pod: - pod, err := w.c.CoreV1().Pods(value.Namespace).Get(value.Name, metav1.GetOptions{}) + pod, err := w.c.CoreV1().Pods(v.Namespace).Get(v.Name, metav1.GetOptions{}) if err != nil || !w.isPodReady(pod) { return false, err } @@ -83,7 +83,7 @@ func (w *waiter) waitForResources(created ResourceList) error { return false, nil } case *corev1.PersistentVolumeClaim: - claim, err := w.c.CoreV1().PersistentVolumeClaims(value.Namespace).Get(value.Name, metav1.GetOptions{}) + claim, err := w.c.CoreV1().PersistentVolumeClaims(v.Namespace).Get(v.Name, metav1.GetOptions{}) if err != nil { return false, err } @@ -91,7 +91,7 @@ func (w *waiter) waitForResources(created ResourceList) error { return false, nil } case *corev1.Service: - svc, err := w.c.CoreV1().Services(value.Namespace).Get(value.Name, metav1.GetOptions{}) + svc, err := w.c.CoreV1().Services(v.Namespace).Get(v.Name, metav1.GetOptions{}) if err != nil { return false, err }