Skip to content

Commit 614f503

Browse files
azure-sdkbenbp
andauthored
Fix minor issue getting stress secret labels with quoting and error handling (Azure#19583)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
1 parent c2a2114 commit 614f503

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ function DeployStressPackage(
315315
# Helm 3 stores release information in kubernetes secrets. The only way to add extra labels around
316316
# specific releases (thereby enabling filtering on `helm list`) is to label the underlying secret resources.
317317
# There is not currently support for setting these labels via the helm cli.
318-
$helmReleaseConfig = kubectl get secrets `
319-
-n $pkg.Namespace `
320-
-l status=deployed,name=$($pkg.ReleaseName) `
321-
-o jsonpath='{.items[0].metadata.name}'
318+
$helmReleaseConfig = RunOrExitOnFailure kubectl get secrets `
319+
-n $pkg.Namespace `
320+
-l "status=deployed,name=$($pkg.ReleaseName)" `
321+
-o jsonpath='{.items[0].metadata.name}'
322322

323323
Run kubectl label secret -n $pkg.Namespace --overwrite $helmReleaseConfig deployId=$deployId
324324
}

0 commit comments

Comments
 (0)