Skip to content

Commit 2d6e697

Browse files
authored
Merge pull request #252 from pohly/test-driver-node-selector
test: select node for late binding tests
2 parents 42479e9 + e0faf2d commit 2d6e697

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deploy/util/deploy-hostpath.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,11 @@ fi
245245
# expects it?
246246
if [ "${CSI_PROW_TEST_DRIVER}" ]; then
247247
cp "${BASE_DIR}/test-driver.yaml" "${CSI_PROW_TEST_DRIVER}"
248+
249+
# When testing late binding, pods must be forced to run on the
250+
# same node as the hostpath driver. external-provisioner currently
251+
# doesn't handle the case when the "wrong" node is chosen and gets
252+
# stuck permanently with:
253+
# error generating accessibility requirements: no topology key found on CSINode csi-prow-worker2
254+
echo >>"${CSI_PROW_TEST_DRIVER}" "ClientNodeName: $(kubectl get pods/csi-hostpath-provisioner-0 -o jsonpath='{.spec.nodeName}')"
248255
fi

0 commit comments

Comments
 (0)