Skip to content

Commit 4c3c8f1

Browse files
authored
fix: use v1 pdb object under e2e bundle test (#2398)
Signed-off-by: Daniel Sover <[email protected]>
1 parent a94b10b commit 4c3c8f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/e2e/bundle_e2e_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var _ = Describe("Installing bundles with new object types", func() {
5454
By("first installing the VPA CRD on cluster")
5555
const (
5656
sourceName = "test-catalog"
57-
imageName = "quay.io/olmtest/single-bundle-index:pdb"
57+
imageName = "quay.io/olmtest/single-bundle-index:pdb-v1"
5858
)
5959

6060
// create VPA CRD on cluster
@@ -139,11 +139,6 @@ var _ = Describe("Installing bundles with new object types", func() {
139139
}
140140

141141
// confirm extra bundle objects are installed
142-
Eventually(func() error {
143-
_, err := kubeClient.KubernetesInterface().PolicyV1beta1().PodDisruptionBudgets(testNamespace).Get(context.TODO(), pdbName, metav1.GetOptions{})
144-
return err
145-
}).Should(Succeed(), "expected no error getting pdb object associated with CSV")
146-
147142
Eventually(func() error {
148143
_, err := kubeClient.KubernetesInterface().SchedulingV1().PriorityClasses().Get(context.TODO(), priorityClassName, metav1.GetOptions{})
149144
return err
@@ -153,6 +148,11 @@ var _ = Describe("Installing bundles with new object types", func() {
153148
_, err := dynamicClient.Resource(resource).Namespace(testNamespace).Get(context.TODO(), vpaName, metav1.GetOptions{})
154149
return err
155150
}).Should(Succeed(), "expected no error finding vpa object associated with csv")
151+
152+
Eventually(func() error {
153+
_, err := kubeClient.KubernetesInterface().PolicyV1().PodDisruptionBudgets(testNamespace).Get(context.TODO(), pdbName, metav1.GetOptions{})
154+
return err
155+
}).Should(Succeed(), "expected no error getting pdb object associated with CSV")
156156
})
157157

158158
AfterEach(func() {

0 commit comments

Comments
 (0)