Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions steps/topology/kwok/validate-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ steps:
- script: |
set -eo pipefail

CMD="PYTHONPATH=$PYTHONPATH:$(pwd) python3 $KWOK_SCRIPT_FILE"
CMD="$CMD --action create"
CMD="$CMD --node-count $NODE_COUNT"
CMD="$CMD --node-gpu ${NODE_GPU:-\"0\"}"
if [ "$ENABLE_DRA" = "True" ]; then
CMD="$CMD --enable-dra"
PYTHONPATH=$PYTHONPATH:$(pwd) python3 $KWOK_SCRIPT_FILE \
--action create \
--node-count $NODE_COUNT \
--node-gpu ${NODE_GPU:-"0"} \
--enable-dra
else
PYTHONPATH=$PYTHONPATH:$(pwd) python3 $KWOK_SCRIPT_FILE \
--action create \
--node-count $NODE_COUNT \
--node-gpu ${NODE_GPU:-"0"}
fi
eval $CMD

workingDirectory: modules/python
env:
Expand Down