From 403bdbc8545aa97976a6c1d3b670f6e68dc78d40 Mon Sep 17 00:00:00 2001 From: namkyu1999 Date: Thu, 21 Nov 2024 02:39:37 +0900 Subject: [PATCH] chore Signed-off-by: namkyu1999 --- pkg/load/k6-loadgen/environment/environment.go | 1 + pkg/load/k6-loadgen/types/types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/load/k6-loadgen/environment/environment.go b/pkg/load/k6-loadgen/environment/environment.go index af104c52f..92a4a0caa 100644 --- a/pkg/load/k6-loadgen/environment/environment.go +++ b/pkg/load/k6-loadgen/environment/environment.go @@ -14,6 +14,7 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails) { experimentDetails.EngineName = types.Getenv("CHAOSENGINE", "") experimentDetails.ChaosDuration, _ = strconv.Atoi(types.Getenv("TOTAL_CHAOS_DURATION", "30")) experimentDetails.RampTime, _ = strconv.Atoi(types.Getenv("RAMP_TIME", "0")) + experimentDetails.Delay, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_DELAY", "2")) experimentDetails.Timeout, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_TIMEOUT", "180")) experimentDetails.LIBImagePullPolicy = types.Getenv("LIB_IMAGE_PULL_POLICY", "Always") experimentDetails.LIBImage = types.Getenv("LIB_IMAGE", "ghcr.io/grafana/k6-operator:latest-runner") diff --git a/pkg/load/k6-loadgen/types/types.go b/pkg/load/k6-loadgen/types/types.go index 0866cd6e7..86597ca6a 100644 --- a/pkg/load/k6-loadgen/types/types.go +++ b/pkg/load/k6-loadgen/types/types.go @@ -8,6 +8,7 @@ type ExperimentDetails struct { RampTime int ChaosNamespace string Timeout int + Delay int LIBImagePullPolicy string LIBImage string ScriptSecretName string