* Support local addons path override in stress test deployment * Support username based deployId in local stress deployment * Support WhatIf in stress infrastructure provision script * Simplify stress user detection Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> * Run helm plugin add with helper * Add WhatIf support to ps module install helper function Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
34 lines
1.1 KiB
PowerShell
34 lines
1.1 KiB
PowerShell
# Set a default parameter set here so we can call this script without requiring -Login and -Subscription,
|
|
# but if it IS called with either of those, then both parameters need to be required. Not defining a
|
|
# default parameter set makes Login/Subscription required all the time.
|
|
[CmdletBinding(DefaultParameterSetName = 'Default')]
|
|
param(
|
|
[string]$SearchDirectory,
|
|
[hashtable]$Filters,
|
|
[string]$Environment,
|
|
[string]$Repository,
|
|
[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
|
|
[switch] $CI = ($null -ne $env:SYSTEM_TEAMPROJECTID),
|
|
|
|
# Optional namespace override, otherwise the shell user or chart annotation will be used
|
|
[string]$Namespace,
|
|
|
|
# Override remote stress-test-addons with local on-disk addons for development
|
|
[System.IO.FileInfo]$LocalAddonsPath
|
|
)
|
|
|
|
. $PSScriptRoot/stress-test-deployment-lib.ps1
|
|
|
|
CheckDependencies
|
|
DeployStressTests @PSBoundParameters
|