Skip to content

Commit

Permalink
Enable nodepool update via bicep and update node SKUs (#19931)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Broderick Phillips <[email protected]>
  • Loading branch information
azure-sdk and benbp authored Feb 2, 2023
1 parent 2f2de84 commit 34b3691
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 0 additions & 4 deletions eng/common/scripts/stress-testing/deploy-stress-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ param(
[switch]$PushImages,
[string]$ClusterGroup,
[string]$DeployId,

[Parameter(ParameterSetName = 'DoLogin', Mandatory = $true)]
[switch]$Login,

[Parameter(ParameterSetName = 'DoLogin')]
[string]$Subscription,

# Default to true in Azure Pipelines environments
Expand Down
13 changes: 8 additions & 5 deletions eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ function DeployStressTests(
}
$clusterGroup = 'rg-stress-cluster-prod'
$subscription = 'Azure SDK Test Resources'
} elseif (!$clusterGroup -or !$subscription) {
throw "clusterGroup and subscription parameters must be specified when deploying to an environment that is not pg or prod."
}

if ($login) {
if (!$clusterGroup -or !$subscription) {
throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not pg or prod."
}
Login -subscription $subscription -clusterGroup $clusterGroup -pushImages:$pushImages
}

Expand Down Expand Up @@ -160,7 +159,9 @@ function DeployStressTests(
-environment $environment `
-repositoryBase $repository `
-pushImages:$pushImages `
-login:$login
-login:$login `
-clusterGroup $clusterGroup `
-subscription $subscription
}

if ($FailedCommands.Count -lt $pkgs.Count) {
Expand All @@ -185,7 +186,9 @@ function DeployStressPackage(
[string]$environment,
[string]$repositoryBase,
[switch]$pushImages,
[switch]$login
[switch]$login,
[string]$clusterGroup,
[string]$subscription
) {
$registry = RunOrExitOnFailure az acr list -g $clusterGroup --subscription $subscription -o json
$registryName = ($registry | ConvertFrom-Json).name
Expand Down

0 comments on commit 34b3691

Please sign in to comment.