Skip to content

Commit

Permalink
Rename env to EC2_INSTANCE_TAG
Browse files Browse the repository at this point in the history
Signed-off-by: Jongwoo Han <[email protected]>
  • Loading branch information
jongwooo committed Aug 7, 2024
1 parent 10e9b77 commit 0d0dbdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion experiments/kube-aws/ec2-terminate-by-tag/test/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
- "3600"
env:
# value: key:value ex: team:devops
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: ''

- name: CHAOS_NAMESPACE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails) {
experimentDetails.Timeout, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_TIMEOUT", "180"))
experimentDetails.Region = types.Getenv("REGION", "")
experimentDetails.ManagedNodegroup = types.Getenv("MANAGED_NODEGROUP", "disable")
experimentDetails.InstanceTag = strings.TrimSpace(types.Getenv("INSTANCE_TAG", ""))
experimentDetails.InstanceTag = strings.TrimSpace(types.Getenv("EC2_INSTANCE_TAG", ""))
experimentDetails.InstanceAffectedPerc, _ = strconv.Atoi(types.Getenv("INSTANCE_AFFECTED_PERC", "0"))
experimentDetails.Sequence = types.Getenv("SEQUENCE", "parallel")
}

0 comments on commit 0d0dbdc

Please sign in to comment.