Skip to content

Commit

Permalink
e2e: ensure mig.strategy is not set to 'mixed' during the MPS test case
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
  • Loading branch information
cdesiniotis committed Jun 5, 2024
1 parent 5dffeaa commit 43bc640
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/scripts/update-clusterpolicy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ test_mps() {
kubectl apply -f ${TEST_DIR}/plugin-config.yaml -n $TEST_NAMESPACE
kubectl patch clusterpolicy/cluster-policy --type='json' -p='[{"op": "add", "path": "/spec/devicePlugin/config", "value": {"name": "plugin-config", "default": "mps"}}]'

# Ensure the 'single' MIG strategy is configured as currently MPS support in the plugin does not support 'mixed' MIG strategy
kubectl patch clusterpolicy/cluster-policy --type='json' -p='[{"op": "replace", "path": "/spec/mig/strategy", "value": '$MIG_STRATEGY'}]'

# sleep for 10 seconds for operator to apply changes to plugin pods
sleep 10

Expand Down

0 comments on commit 43bc640

Please sign in to comment.