From a583bc293bbbf71f8432be3e24c22e3d0b894093 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 8 Nov 2021 16:35:06 -0800 Subject: [PATCH] updating chart.yaml for stress-test-addons (#3081) Co-authored-by: Albert Cheng --- eng/common/scripts/stress-testing/deploy-stress-tests.ps1 | 1 + eng/common/scripts/stress-testing/find-all-stress-packages.ps1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 index 336854608..a50dc1522 100644 --- a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 +++ b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 @@ -156,6 +156,7 @@ function DeployStressPackage( Write-Host "Creating namespace $($pkg.Namespace) if it does not exist..." kubectl create namespace $pkg.Namespace --dry-run=client -o yaml | kubectl apply -f - + if ($LASTEXITCODE) {exit $LASTEXITCODE} Write-Host "Installing or upgrading stress test $($pkg.ReleaseName) from $($pkg.Directory)" Run helm upgrade $pkg.ReleaseName $pkg.Directory ` diff --git a/eng/common/scripts/stress-testing/find-all-stress-packages.ps1 b/eng/common/scripts/stress-testing/find-all-stress-packages.ps1 index 277f09199..883fda959 100644 --- a/eng/common/scripts/stress-testing/find-all-stress-packages.ps1 +++ b/eng/common/scripts/stress-testing/find-all-stress-packages.ps1 @@ -49,7 +49,7 @@ function NewStressTestPackageInfo([hashtable]$chart, [System.IO.FileInfo]$chartF } return [StressTestPackageInfo]@{ - Namespace = $namespace + Namespace = $namespace.ToLower() Directory = $chartFile.DirectoryName ReleaseName = $chart.name }