Skip to content

Commit 6b1ae3c

Browse files
exdxtimflannagan
authored andcommitted
fix: use v1 pdb object under e2e bundle test (#2398)
Signed-off-by: Daniel Sover <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: 4c3c8f1b1bf6c64271f81a4e64043a081c9d73b7
1 parent 779c47f commit 6b1ae3c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

staging/operator-lifecycle-manager/test/e2e/bundle_e2e_test.go

Lines changed: 6 additions & 6 deletions
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)