From 4c3c8f1b1bf6c64271f81a4e64043a081c9d73b7 Mon Sep 17 00:00:00 2001 From: exdx Date: Fri, 8 Oct 2021 19:09:36 -0400 Subject: [PATCH] fix: use v1 pdb object under e2e bundle test (#2398) Signed-off-by: Daniel Sover --- test/e2e/bundle_e2e_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/e2e/bundle_e2e_test.go b/test/e2e/bundle_e2e_test.go index cc2c8eaa2f..1a6869a6dd 100644 --- a/test/e2e/bundle_e2e_test.go +++ b/test/e2e/bundle_e2e_test.go @@ -54,7 +54,7 @@ var _ = Describe("Installing bundles with new object types", func() { By("first installing the VPA CRD on cluster") const ( sourceName = "test-catalog" - imageName = "quay.io/olmtest/single-bundle-index:pdb" + imageName = "quay.io/olmtest/single-bundle-index:pdb-v1" ) // create VPA CRD on cluster @@ -139,11 +139,6 @@ var _ = Describe("Installing bundles with new object types", func() { } // confirm extra bundle objects are installed - Eventually(func() error { - _, err := kubeClient.KubernetesInterface().PolicyV1beta1().PodDisruptionBudgets(testNamespace).Get(context.TODO(), pdbName, metav1.GetOptions{}) - return err - }).Should(Succeed(), "expected no error getting pdb object associated with CSV") - Eventually(func() error { _, err := kubeClient.KubernetesInterface().SchedulingV1().PriorityClasses().Get(context.TODO(), priorityClassName, metav1.GetOptions{}) return err @@ -153,6 +148,11 @@ var _ = Describe("Installing bundles with new object types", func() { _, err := dynamicClient.Resource(resource).Namespace(testNamespace).Get(context.TODO(), vpaName, metav1.GetOptions{}) return err }).Should(Succeed(), "expected no error finding vpa object associated with csv") + + Eventually(func() error { + _, err := kubeClient.KubernetesInterface().PolicyV1().PodDisruptionBudgets(testNamespace).Get(context.TODO(), pdbName, metav1.GetOptions{}) + return err + }).Should(Succeed(), "expected no error getting pdb object associated with CSV") }) AfterEach(func() {