Skip to content

Commit d8d1922

Browse files
Ygnasopenshift-merge-bot[bot]
authored andcommitted
fix: e2e gpu test with worker nodes
1 parent 3e0d9b3 commit d8d1922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github-actions/kind/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ runs:
5050
5151
if [ "$WORKER_NODES" -gt 0 ]; then
5252
for i in $(seq 1 $WORKER_NODES); do
53-
sed -i "/^nodes:/a \ \ - role: worker\n image: ${NODE_IMAGE}\n labels:\n ${LABEL_PREFIX}-${i}: true" ${GITHUB_ACTION_PATH}/resources/kind.yaml
53+
sed -i "/^nodes:/a \ \ - role: worker\n image: ${NODE_IMAGE}\n labels:\n ${LABEL_PREFIX}-${i}: true\n extraMounts:\n - hostPath: /dev/null\n containerPath: /var/run/nvidia-container-devices/all" ${GITHUB_ACTION_PATH}/resources/kind.yaml
5454
done
5555
fi
5656

0 commit comments

Comments
 (0)