feat: support -Version for -Provision and -Cleanup commands

Provision and cleanup now accept a version argument (8, 9, or all)
to operate on a subset of PVE nodes:

  dev.ps1 -Provision -Version 9 -DockerHost ...   # only PVE 9 nodes
  dev.ps1 -Cleanup -Version 8 -DockerHost ...     # only PVE 8 nodes

run-integration.sh provision/cleanup also accept the version arg,
overriding PVE_VERSIONS and ALL_NODES for that invocation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Clint Branham
2026-03-25 13:52:44 -05:00
parent 117b10d222
commit db3629e705
2 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -229,7 +229,7 @@ if ($Test) {
if ($Provision) {
Start-InfraContainer
docker exec $InfraContainer bash $RunIntegration provision
docker exec $InfraContainer bash $RunIntegration provision $Version
if ($LASTEXITCODE -ne 0) { throw "Provisioning failed (exit code $LASTEXITCODE)" }
}
@@ -248,7 +248,7 @@ if ($Integration) {
if ($Cleanup) {
Start-InfraContainer
docker exec $InfraContainer bash $RunIntegration cleanup
docker exec $InfraContainer bash $RunIntegration cleanup $Version
if ($LASTEXITCODE -ne 0) { throw "Cleanup failed (exit code $LASTEXITCODE)" }
}