From 42909af61544a98f6ac9c09be5ae1f6e2bf15832 Mon Sep 17 00:00:00 2001 From: torredil Date: Tue, 28 Feb 2023 21:21:29 +0000 Subject: [PATCH] Add windows nodeSelector to provisioning functions Signed-off-by: torredil --- test/e2e/storage/testsuites/provisioning.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/e2e/storage/testsuites/provisioning.go b/test/e2e/storage/testsuites/provisioning.go index fedebd95c9c..923c55d9558 100644 --- a/test/e2e/storage/testsuites/provisioning.go +++ b/test/e2e/storage/testsuites/provisioning.go @@ -747,8 +747,7 @@ func PVWriteReadSingleNodeCheck(ctx context.Context, client clientset.Interface, // agnhost doesn't support mount command = "grep 'hello world' /mnt/test/data" } - RunInPodWithVolume(ctx, client, timeouts, claim.Namespace, claim.Name, "pvc-volume-tester-reader", command, e2epod.NodeSelection{Name: actualNodeName}) - + RunInPodWithVolume(ctx, client, timeouts, claim.Namespace, claim.Name, "pvc-volume-tester-reader", command, e2epod.NodeSelection{Name: actualNodeName, Selector: node.Selector}) return e2evolume } @@ -1184,7 +1183,7 @@ func MultiplePVMountSingleNodeCheck(ctx context.Context, client clientset.Interf pod2Config := e2epod.Config{ NS: pvc2.Namespace, - NodeSelection: e2epod.NodeSelection{Name: pod1.Spec.NodeName}, + NodeSelection: e2epod.NodeSelection{Name: pod1.Spec.NodeName, Selector: node.Selector}, PVCs: []*v1.PersistentVolumeClaim{pvc2}, } pod2, err := e2epod.CreateSecPodWithNodeSelection(ctx, client, &pod2Config, timeouts.PodStart)