* Use stress test environment defaults for group and subscription * Fix parameter passing from deploy-stress-tests.ps1 script * Redact stress deployment logs and simplify image handling * Use DevopsLogging parameter to prevent secret logging in non-devops CI environments * Use switch type for DevopsLogging parameter * Remove boolean parameter usage in favor of [switch] * Add default parameter set usage comment * Throw when clusterGroup and/or subscription is not specified for custom environments * Add helper function for logging azure pipelines vso commands * Invert SuppressVsoCommands binary default value * Vso command fixes Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
28 lines
898 B
PowerShell
28 lines
898 B
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)
|
|
)
|
|
|
|
. $PSScriptRoot/stress-test-deployment-lib.ps1
|
|
|
|
CheckDependencies
|
|
DeployStressTests @PSBoundParameters
|