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 f949b03ad8a..673e64e73bf 100644 --- a/eng/common/scripts/stress-testing/find-all-stress-packages.ps1 +++ b/eng/common/scripts/stress-testing/find-all-stress-packages.ps1 @@ -36,6 +36,8 @@ function FindStressPackages( } foreach ($chartFile in $chartFiles) { $chart = ParseChart $chartFile + + VerifyAddonsVersion $chart if (matchesAnnotations $chart $filters) { $matrixFilePath = (Join-Path $chartFile.Directory.FullName $MatrixFileName) if (Test-Path $matrixFilePath) { @@ -73,6 +75,15 @@ function MatchesAnnotations([hashtable]$chart, [hashtable]$filters) { return $true } +function VerifyAddonsVersion([hashtable]$chart) { + foreach ($dependency in $chart.dependencies) { + if ($dependency.name -eq "stress-test-addons" -and + $dependency.version -lt "0.2.0") { + throw "The stress-test-addons version in use is $($dependency.version), please use versions >= 0.2.0" + } + } +} + function GetUsername() { # Check GITHUB_USER for users in codespaces environments, since the default user is `codespaces` and # we would like to avoid namespace overlaps for different codespaces users. diff --git a/tools/stress-cluster/chaos/README.md b/tools/stress-cluster/chaos/README.md index 32a618647ed..491f7ebb9d7 100644 --- a/tools/stress-cluster/chaos/README.md +++ b/tools/stress-cluster/chaos/README.md @@ -275,8 +275,9 @@ For kubernetes manifests in the stress test helm chart `templates` directory tha `stress-test-addons` (see [examples](#job-manifest)[below](#chaos-manifest)) templates, several special helper fields are made available in the template context. -- `{{ .Values.image }}` - - The docker image published by the stress test deploy script +- `{{ .Stress.imageTag }}` + - The docker image published by the stress test deploy script. + - The docker image is referenced from the [scenarios-matrix.yaml](#scenarios-and-scenarios-matrixyaml). - `{{ .Stress.Scenario }}` - If using [Scenarios](#scenarios-and-scenarios-matrixyaml), this value maps to the individual scenario for which a template is being generated. @@ -401,7 +402,6 @@ Under the hood, the stress test tools will duplicate the job yaml for each scena For example, given a stress test package with multiple tests represented as separate files each running on a different docker image: ``` -values.yaml templates/ src/ scenarioLongRunning.js