Skip to content

Commit ddd7cda

Browse files
test(vm): filter only virt-launcher pods in volume migration test (#2421)
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
1 parent 1edd5fb commit ddd7cda

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/e2e/vm/volume_migration_local_disks.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,10 @@ var _ = Describe("RWOVirtualDiskMigration", decoratorsForVolumeMigrations(), Lab
446446
util.MigrateVirtualMachine(f, vm, vmopbuilder.WithName(vmopName))
447447

448448
Eventually(func() error {
449-
pods, err := f.KubeClient().CoreV1().Pods(ns).List(ctx, metav1.ListOptions{})
449+
// filter pods by label, only virt-launcher pods needed, ignore hp pods (hotplug volumes)
450+
pods, err := f.KubeClient().CoreV1().Pods(ns).List(ctx, metav1.ListOptions{
451+
LabelSelector: "kubevirt.internal.virtualization.deckhouse.io=virt-launcher",
452+
})
450453
Expect(err).NotTo(HaveOccurred())
451454

452455
if len(pods.Items) != 2 {

0 commit comments

Comments
 (0)