From a30eb9d45857befc6c1e523cd25c4c1a843554db Mon Sep 17 00:00:00 2001 From: Thiago Arrais Date: Tue, 17 Sep 2024 11:23:00 -0300 Subject: [PATCH] Exposes expected number of workers to JMeter master pod Part of the fix for #332 --- pkg/backends/jmeter/resources.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/backends/jmeter/resources.go b/pkg/backends/jmeter/resources.go index 93965ffd..e679e85e 100644 --- a/pkg/backends/jmeter/resources.go +++ b/pkg/backends/jmeter/resources.go @@ -9,6 +9,7 @@ import ( "fmt" "io" "os" + "strconv" "strings" "go.uber.org/zap" @@ -375,6 +376,10 @@ func (b *Backend) NewJMeterMasterJob(loadTest loadTestV1.LoadTest, reportURL str Name: "WORKER_SVC_NAME", Value: loadTestWorkerServiceName, }, + { + Name: "WORKER_TOTAL", + Value: strconv.Itoa(int(*loadTest.Spec.DistributedPods)), + }, { Name: "USE_WORKERS", Value: "true",