Skip to content

Commit

Permalink
Exposes expected number of workers to JMeter master pod
Browse files Browse the repository at this point in the history
Part of the fix for hellofresh#332
  • Loading branch information
thiagoarrais committed Sep 17, 2024
1 parent fed044c commit a30eb9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/backends/jmeter/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fmt"
"io"
"os"
"strconv"
"strings"

"go.uber.org/zap"
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit a30eb9d

Please sign in to comment.