Skip to content

Commit 41cd2a8

Browse files
committed
chore: remove unused variables in the k6 chaos fault
Signed-off-by: namkyu1999 <[email protected]>
1 parent 7e08c69 commit 41cd2a8

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

experiments/load/k6-loadgen/experiment/k6-loadgen.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ func Experiment(ctx context.Context, clients clients.ClientSets) {
6363

6464
//DISPLAY THE APP INFORMATION
6565
log.InfoWithValues("[Info]: The application information is as follows", logrus.Fields{
66-
"Namespace": experimentsDetails.AppNS,
67-
"Label": experimentsDetails.AppLabel,
6866
"Chaos Duration": experimentsDetails.ChaosDuration,
6967
})
7068

pkg/load/k6-loadgen/environment/environment.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails) {
1313
experimentDetails.ChaosNamespace = types.Getenv("CHAOS_NAMESPACE", "litmus")
1414
experimentDetails.EngineName = types.Getenv("CHAOSENGINE", "")
1515
experimentDetails.ChaosDuration, _ = strconv.Atoi(types.Getenv("TOTAL_CHAOS_DURATION", "30"))
16-
experimentDetails.ChaosInterval, _ = strconv.Atoi(types.Getenv("CHAOS_INTERVAL", "10"))
1716
experimentDetails.RampTime, _ = strconv.Atoi(types.Getenv("RAMP_TIME", "0"))
18-
experimentDetails.AppNS = types.Getenv("APP_NAMESPACE", "")
19-
experimentDetails.AppLabel = types.Getenv("APP_LABEL", "")
20-
experimentDetails.AppKind = types.Getenv("APP_KIND", "")
21-
experimentDetails.Delay, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_DELAY", "2"))
2217
experimentDetails.Timeout, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_TIMEOUT", "180"))
23-
experimentDetails.PodsAffectedPerc, _ = strconv.Atoi(types.Getenv("PODS_AFFECTED_PERC", "0"))
2418
experimentDetails.LIBImagePullPolicy = types.Getenv("LIB_IMAGE_PULL_POLICY", "Always")
2519
experimentDetails.LIBImage = types.Getenv("LIB_IMAGE", "ghcr.io/grafana/k6-operator:latest-runner")
2620
experimentDetails.ScriptSecretName = types.Getenv("SCRIPT_SECRET_NAME", "k6-script")

pkg/load/k6-loadgen/types/types.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ type ExperimentDetails struct {
55
ExperimentName string
66
EngineName string
77
ChaosDuration int
8-
ChaosInterval int
98
RampTime int
10-
AppNS string
11-
AppLabel string
12-
AppKind string
139
ChaosNamespace string
1410
Timeout int
15-
Delay int
16-
PodsAffectedPerc int
1711
LIBImagePullPolicy string
1812
LIBImage string
1913
ScriptSecretName string

0 commit comments

Comments
 (0)