Skip to content

Commit c3ee7b5

Browse files
Karthik Satchitanandispeakc0deuditgauravgdsoumya
authored
[Cherry Pick for 1.13.3] (#332)
* chore(applabels): Erroring out if applabel is not provided and annotationCheck is false (#319) Signed-off-by: shubhamchaudhary <[email protected]> * feat(randomness): Adding randomness interval inside pod-delete experiment (#321) Signed-off-by: shubhamchaudhary <[email protected]> * rm(network-latency): Removed duplicate network-latency experiment (#322) * rm(network-letency): Removed duplicate network-latency experiment Signed-off-by: shubhamchaudhary <[email protected]> * Chore(actions): Update GitHub Chaos Actions (#320) Signed-off-by: udit <[email protected]> * chore(probe): stop failing of other probes of same phase if one probe fails (#324) * chore(probe): stop failing of other probes of same phase if one probe fails Signed-off-by: shubhamchaudhary <[email protected]> * updating the chaos-operator vendors Signed-off-by: shubhamchaudhary <[email protected]> * Chore(stress): Add stress envs for stress supported experiments (#325) * Chore(stress): Add stress envs for stress supported experiments Signed-off-by: udit <[email protected]> * Correct lint failure Signed-off-by: udit <[email protected]> * Update environment.go Co-authored-by: udit <[email protected]> * chore(helper): fixing waitForCompletion function to handle failed helpers in case of multiple targets (#326) Signed-off-by: shubhamchaudhary <[email protected]> Co-authored-by: Karthik Satchitanand <[email protected]> * feat(revert): Adding chaos revert steps on experiment abortion (#318) * feat(revert): Adding chaos revert steps for experiment abortion Signed-off-by: shubhamchaudhary <[email protected]> * chore(revert): Adding revert logic inside pod-cpu-hog experiment Signed-off-by: shubhamchaudhary <[email protected]> Co-authored-by: Karthik Satchitanand <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> * Added Pod DNS Chaos (#328) * Added DNS Chaos Signed-off-by: Soumya Ghosh Dastidar <[email protected]> * Added termination grace period env Signed-off-by: Soumya Ghosh Dastidar <[email protected]> * Updated abort watcher Signed-off-by: Soumya Ghosh Dastidar <[email protected]> * added change requests Signed-off-by: Soumya Ghosh Dastidar <[email protected]> * update(sdk): updating the sdk scaffold (#329) Signed-off-by: shubhamchaudhary <[email protected]> * fix(logging): modifying the Fatal to Error (#330) Signed-off-by: shubhamchaudhary <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> * (enhancement)stress-image: add env for stress-image used in pumba lib (#331) Signed-off-by: ksatchit <[email protected]> * Chore(new_experiment): Split EC2 terminate experiment to select multiple instance using tags or list in different sequence modes (#327) * Chore(ec2): Enhanc EC2 terminate experiment to select multiple instance using tags or list in different sequence modes Signed-off-by: udit <[email protected]> * Add seperate experiments for ec2 terminate by id and by tags Signed-off-by: uditgaurav <[email protected]> * update test.yml Signed-off-by: uditgaurav <[email protected]> * update service account name in test.yml Signed-off-by: uditgaurav <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> Co-authored-by: udit <[email protected]> Co-authored-by: Soumya Ghosh Dastidar <[email protected]>
1 parent 7e0b0cf commit c3ee7b5

164 files changed

Lines changed: 3033 additions & 8115 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/run-e2e-on-new-pr.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
6464

6565
- name: Setup Litmus
66-
uses: mayadata-io/[email protected]
66+
uses: litmuschaos/[email protected]
6767
env:
6868
INSTALL_LITMUS: true
6969

@@ -80,7 +80,7 @@ jobs:
8080

8181
- name: Running Litmus pod delete chaos experiment
8282
if: "contains(github.event.head_commit.message, '[Pod Delete]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
83-
uses: mayadata-io/[email protected]
83+
uses: litmuschaos/[email protected]
8484
env:
8585
EXPERIMENT_NAME: pod-delete
8686
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: Running container kill chaos experiment
9292
if: "contains(github.event.head_commit.message, '[Container Kill]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
93-
uses: mayadata-io/[email protected]
93+
uses: litmuschaos/[email protected]
9494
env:
9595
EXPERIMENT_NAME: container-kill
9696
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -101,7 +101,7 @@ jobs:
101101

102102
- name: Running node-cpu-hog chaos experiment
103103
if: "contains(github.event.head_commit.message, '[Resource Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
104-
uses: mayadata-io/[email protected]
104+
uses: litmuschaos/[email protected]
105105
env:
106106
EXPERIMENT_NAME: node-cpu-hog
107107
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -112,7 +112,7 @@ jobs:
112112

113113
- name: Running node-memory-hog chaos experiment
114114
if: "contains(github.event.head_commit.message, '[Resource Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
115-
uses: mayadata-io/[email protected]
115+
uses: litmuschaos/[email protected]
116116
env:
117117
EXPERIMENT_NAME: node-memory-hog
118118
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -122,7 +122,7 @@ jobs:
122122

123123
- name: Running pod-cpu-hog chaos experiment
124124
if: "contains(github.event.head_commit.message, '[Resource Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
125-
uses: mayadata-io/[email protected]
125+
uses: litmuschaos/[email protected]
126126
env:
127127
EXPERIMENT_NAME: pod-cpu-hog
128128
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -135,7 +135,7 @@ jobs:
135135

136136
- name: Running pod-memory-hog chaos experiment
137137
if: "contains(github.event.head_commit.message, '[Resource Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
138-
uses: mayadata-io/[email protected]
138+
uses: litmuschaos/[email protected]
139139
env:
140140
EXPERIMENT_NAME: pod-memory-hog
141141
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -149,7 +149,7 @@ jobs:
149149

150150
- name: Running pod network corruption chaos experiment
151151
if: "contains(github.event.head_commit.message, '[Network Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
152-
uses: mayadata-io/[email protected]
152+
uses: litmuschaos/[email protected]
153153
env:
154154
EXPERIMENT_NAME: pod-network-corruption
155155
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -163,7 +163,7 @@ jobs:
163163

164164
- name: Running pod network duplication chaos experiment
165165
if: "contains(github.event.head_commit.message, '[Network Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
166-
uses: mayadata-io/[email protected]
166+
uses: litmuschaos/[email protected]
167167
env:
168168
EXPERIMENT_NAME: pod-network-duplication
169169
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -177,7 +177,7 @@ jobs:
177177

178178
- name: Running pod-network-latency chaos experiment
179179
if: "contains(github.event.head_commit.message, '[Network Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
180-
uses: mayadata-io/[email protected]
180+
uses: litmuschaos/[email protected]
181181
env:
182182
EXPERIMENT_NAME: pod-network-latency
183183
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -192,7 +192,7 @@ jobs:
192192

193193
- name: Running pod-network-loss chaos experiment
194194
if: "contains(github.event.head_commit.message, '[Network Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
195-
uses: mayadata-io/[email protected]
195+
uses: litmuschaos/[email protected]
196196
env:
197197
EXPERIMENT_NAME: pod-network-loss
198198
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -207,7 +207,7 @@ jobs:
207207

208208
- name: Running pod autoscaler chaos experiment
209209
if: "contains(github.event.head_commit.message, '[Scale Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
210-
uses: mayadata-io/[email protected]
210+
uses: litmuschaos/[email protected]
211211
env:
212212
EXPERIMENT_NAME: pod-autoscaler
213213
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -218,7 +218,7 @@ jobs:
218218

219219
- name: Running node-io-stress chaos experiment
220220
if: "contains(github.event.head_commit.message, '[IO Chaos]') || contains(github.event.head_commit.message, '[Run CI]') || env.TEST_RUN != 'true'"
221-
uses: mayadata-io/[email protected]
221+
uses: litmuschaos/[email protected]
222222
env:
223223
EXPERIMENT_NAME: node-io-stress
224224
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -237,7 +237,7 @@ jobs:
237237
run: echo "Some tests are failing please check..."
238238

239239
- name: Uninstall Litmus
240-
uses: mayadata-io/[email protected]
240+
uses: litmuschaos/[email protected]
241241
env:
242242
LITMUS_CLEANUP: true
243243

.github/workflows/run-e2e-on-pr-comment.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ jobs:
7272
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
7373

7474
- name: Setup Litmus
75-
uses: mayadata-io/[email protected]
75+
uses: litmuschaos/[email protected]
7676
env:
7777
INSTALL_LITMUS: true
7878

7979
- name: Running Litmus pod delete chaos experiment
8080
if: startsWith(github.event.comment.body, '/run-e2e-pod-delete') || startsWith(github.event.comment.body, '/run-e2e-all')
81-
uses: mayadata-io/[email protected]
81+
uses: litmuschaos/[email protected]
8282
env:
8383
EXPERIMENT_NAME: pod-delete
8484
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -96,7 +96,7 @@ jobs:
9696
9797
- name: Running container kill chaos experiment
9898
if: startsWith(github.event.comment.body, '/run-e2e-container-kill') || startsWith(github.event.comment.body, '/run-e2e-all')
99-
uses: mayadata-io/[email protected]
99+
uses: litmuschaos/[email protected]
100100
env:
101101
EXPERIMENT_NAME: container-kill
102102
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -115,7 +115,7 @@ jobs:
115115
116116
- name: Running node-cpu-hog chaos experiment
117117
if: startsWith(github.event.comment.body, '/run-e2e-node-cpu-hog') || startsWith(github.event.comment.body, '/run-e2e-resource-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
118-
uses: mayadata-io/[email protected]
118+
uses: litmuschaos/[email protected]
119119
env:
120120
EXPERIMENT_NAME: node-cpu-hog
121121
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -133,7 +133,7 @@ jobs:
133133
134134
- name: Running node-memory-hog chaos experiment
135135
if: startsWith(github.event.comment.body, '/run-e2e-node-memory-hog') || startsWith(github.event.comment.body, '/run-e2e-resource-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
136-
uses: mayadata-io/[email protected]
136+
uses: litmuschaos/[email protected]
137137
env:
138138
EXPERIMENT_NAME: node-memory-hog
139139
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -151,7 +151,7 @@ jobs:
151151
152152
- name: Running pod-cpu-hog chaos experiment
153153
if: startsWith(github.event.comment.body, '/run-e2e-pod-cpu-hog') || startsWith(github.event.comment.body, '/run-e2e-resource-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
154-
uses: mayadata-io/[email protected]
154+
uses: litmuschaos/[email protected]
155155
env:
156156
EXPERIMENT_NAME: pod-cpu-hog
157157
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -172,7 +172,7 @@ jobs:
172172
173173
- name: Running pod-memory-hog chaos experiment
174174
if: startsWith(github.event.comment.body, '/run-e2e-pod-memory-hog') || startsWith(github.event.comment.body, '/run-e2e-resource-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
175-
uses: mayadata-io/[email protected]
175+
uses: litmuschaos/[email protected]
176176
env:
177177
EXPERIMENT_NAME: pod-cpu-hog
178178
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -193,7 +193,7 @@ jobs:
193193
194194
- name: Running pod network corruption chaos experiment
195195
if: startsWith(github.event.comment.body, '/run-e2e-pod-network-corruption') || startsWith(github.event.comment.body, '/run-e2e-network-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
196-
uses: mayadata-io/[email protected]
196+
uses: litmuschaos/[email protected]
197197
env:
198198
EXPERIMENT_NAME: pod-network-corruption
199199
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -215,7 +215,7 @@ jobs:
215215
216216
- name: Running pod network duplication chaos experiment
217217
if: startsWith(github.event.comment.body, '/run-e2e-pod-network-duplication') || startsWith(github.event.comment.body, '/run-e2e-network-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
218-
uses: mayadata-io/[email protected]
218+
uses: litmuschaos/[email protected]
219219
env:
220220
EXPERIMENT_NAME: pod-network-duplication
221221
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -237,7 +237,7 @@ jobs:
237237
238238
- name: Running pod-network-latency chaos experiment
239239
if: startsWith(github.event.comment.body, '/run-e2e-pod-network-latency') || startsWith(github.event.comment.body, '/run-e2e-network-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
240-
uses: mayadata-io/[email protected]
240+
uses: litmuschaos/[email protected]
241241
env:
242242
EXPERIMENT_NAME: pod-network-latency
243243
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -260,7 +260,7 @@ jobs:
260260
261261
- name: Running pod-network-loss chaos experiment
262262
if: startsWith(github.event.comment.body, '/run-e2e-pod-network-loss') || startsWith(github.event.comment.body, '/run-e2e-network-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
263-
uses: mayadata-io/[email protected]
263+
uses: litmuschaos/[email protected]
264264
env:
265265
EXPERIMENT_NAME: pod-network-loss
266266
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -283,7 +283,7 @@ jobs:
283283
284284
- name: Running pod autoscaler chaos experiment
285285
if: startsWith(github.event.comment.body, '/run-e2e-pod-autoscaler') || startsWith(github.event.comment.body, '/run-e2e-all')
286-
uses: mayadata-io/[email protected]
286+
uses: litmuschaos/[email protected]
287287
env:
288288
EXPERIMENT_NAME: pod-autoscaler
289289
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -302,7 +302,7 @@ jobs:
302302
303303
- name: Running node-io-stress chaos experiment
304304
if: startsWith(github.event.comment.body, '/run-e2e-node-io-stress') || startsWith(github.event.comment.body, '/run-e2e-io-chaos') || startsWith(github.event.comment.body, '/run-e2e-all')
305-
uses: mayadata-io/[email protected]
305+
uses: litmuschaos/[email protected]
306306
env:
307307
EXPERIMENT_NAME: node-io-stress
308308
EXPERIMENT_IMAGE: litmuschaos/go-runner
@@ -362,7 +362,7 @@ jobs:
362362
RUN_ID: ${{ github.run_id }}
363363

364364
- name: Uninstall Litmus
365-
uses: mayadata-io/[email protected]
365+
uses: litmuschaos/[email protected]
366366
env:
367367
LITMUS_CLEANUP: true
368368

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build/_output
22
.stignore
3+
.idea/

bin/go-runner.go

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
podAutoscaler "github.com/litmuschaos/litmus-go/experiments/generic/pod-autoscaler/experiment"
2626
podCPUHog "github.com/litmuschaos/litmus-go/experiments/generic/pod-cpu-hog/experiment"
2727
podDelete "github.com/litmuschaos/litmus-go/experiments/generic/pod-delete/experiment"
28+
podDNSChaos "github.com/litmuschaos/litmus-go/experiments/generic/pod-dns-chaos/experiment"
2829
podIOStress "github.com/litmuschaos/litmus-go/experiments/generic/pod-io-stress/experiment"
2930
podMemoryHog "github.com/litmuschaos/litmus-go/experiments/generic/pod-memory-hog/experiment"
3031
podNetworkCorruption "github.com/litmuschaos/litmus-go/experiments/generic/pod-network-corruption/experiment"
@@ -33,7 +34,8 @@ import (
3334
podNetworkLoss "github.com/litmuschaos/litmus-go/experiments/generic/pod-network-loss/experiment"
3435
kafkaBrokerPodFailure "github.com/litmuschaos/litmus-go/experiments/kafka/kafka-broker-pod-failure/experiment"
3536
ebsLoss "github.com/litmuschaos/litmus-go/experiments/kube-aws/ebs-loss/experiment"
36-
ec2terminate "github.com/litmuschaos/litmus-go/experiments/kube-aws/ec2-terminate/experiment"
37+
ec2TerminateByID "github.com/litmuschaos/litmus-go/experiments/kube-aws/ec2-terminate-by-id/experiment"
38+
ec2TerminateByTag "github.com/litmuschaos/litmus-go/experiments/kube-aws/ec2-terminate-by-tag/experiment"
3739

3840
"github.com/litmuschaos/litmus-go/pkg/clients"
3941
"github.com/litmuschaos/litmus-go/pkg/log"
@@ -58,7 +60,8 @@ func main() {
5860

5961
//Getting kubeConfig and Generate ClientSets
6062
if err := clients.GenerateClientSetFromKubeConfig(); err != nil {
61-
log.Fatalf("Unable to Get the kubeconfig, err: %v", err)
63+
log.Errorf("Unable to Get the kubeconfig, err: %v", err)
64+
return
6265
}
6366

6467
log.Infof("Experiment Name: %v", *experimentName)
@@ -103,13 +106,18 @@ func main() {
103106
podNetworkLoss.PodNetworkLoss(clients)
104107
case "cassandra-pod-delete":
105108
cassandraPodDelete.CasssandraPodDelete(clients)
106-
case "ec2-terminate":
107-
ec2terminate.EC2Terminate(clients)
109+
case "ec2-terminate-by-id":
110+
ec2TerminateByID.EC2TerminateByID(clients)
111+
case "ec2-terminate-by-tag":
112+
ec2TerminateByTag.EC2TerminateByTag(clients)
108113
case "ebs-loss":
109114
ebsLoss.EBSLoss(clients)
110115
case "node-restart":
111116
nodeRestart.NodeRestart(clients)
117+
case "pod-dns-chaos":
118+
podDNSChaos.PodDNSExperiment(clients)
112119
default:
113-
log.Fatalf("Unsupported -name %v, please provide the correct value of -name args", *experimentName)
120+
log.Errorf("Unsupported -name %v, please provide the correct value of -name args", *experimentName)
121+
return
114122
}
115123
}

build/Dockerfile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ LABEL maintainer="LitmusChaos"
55
ARG TARGETARCH
66
ARG USER=litmus
77

8+
ENV GLIBC_REPO=https://github.com/sgerrand/alpine-pkg-glibc
9+
ENV GLIBC_VERSION=2.30-r0
10+
811
RUN rm -rf /var/lib/apt/lists/*
912

1013
# Install generally useful things
@@ -18,9 +21,17 @@ RUN apk --update add \
1821
iproute2\
1922
stress-ng\
2023
openssh-client\
21-
libc6-compat \
24+
# libc6-compat \
2225
sshpass
2326

27+
RUN set -ex && \
28+
apk --update add libstdc++ curl ca-certificates && \
29+
for pkg in glibc-${GLIBC_VERSION} glibc-bin-${GLIBC_VERSION}; \
30+
do curl -sSL ${GLIBC_REPO}/releases/download/${GLIBC_VERSION}/${pkg}.apk -o /tmp/${pkg}.apk; done && \
31+
apk add --allow-untrusted /tmp/*.apk && \
32+
rm -v /tmp/*.apk && \
33+
/usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib
34+
2435
# Change default shell from ash to bash
2536
RUN sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd
2637

@@ -40,6 +51,12 @@ RUN curl -L https://github.com/alexei-led/pumba/releases/download/${PUMBA_VERSIO
4051
#Installing promql cli binaries
4152
RUN curl -L https://github.com/litmuschaos/test-tools/raw/master/custom/promql-cli/promql-linux-${TARGETARCH} --output /usr/local/bin/promql && chmod +x /usr/local/bin/promql
4253

54+
#Installing nsutil cli binaries
55+
RUN curl -L https://github.com/litmuschaos/test-tools/raw/master/custom/nsutil/nsutil --output /usr/local/bin/nsutil && chmod +x /usr/local/bin/nsutil
56+
57+
#Installing dns_interceptor cli binaries
58+
RUN curl -L https://github.com/litmuschaos/test-tools/raw/master/custom/dns_interceptor/dns_interceptor --output /usr/local/bin/dns_interceptor && chmod +x /usr/local/bin/dns_interceptor
59+
4360
COPY --from=docker:19.03 /usr/local/bin/docker /usr/local/bin/
4461

4562
#Copying Necessary Files

build/generate_go_binary

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# Buiding go binaries for container_kill helper
1+
# Building go binaries for container_kill helper
22
go build -o build/_output/${GOARCH}/helper/container-killer ./chaoslib/litmus/container-kill/helper
3-
# Buiding go binaries for network_chaos helper
3+
# Building go binaries for network_chaos helper
44
go build -o build/_output/${GOARCH}/helper/network-chaos ./chaoslib/litmus/network-chaos/helper
5-
# Buiding go binaries for disk_fill helper
5+
# Building go binaries for disk_fill helper
66
go build -o build/_output/${GOARCH}/helper/disk-fill ./chaoslib/litmus/disk-fill/helper
7+
# Building go binaries for dns_chaos helper
8+
go build -o build/_output/${GOARCH}/helper/dns-chaos ./chaoslib/litmus/pod-dns-chaos/helper
79
# Building go binaries for all experiments
810
go build -o build/_output/${GOARCH}/experiments ./bin

chaoslib/litmus/container-kill/lib/container-kill.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func PrepareContainerKill(experimentsDetails *experimentTypes.ExperimentDetails,
2222

2323
// Get the target pod details for the chaos execution
2424
// if the target pod is not defined it will derive the random target pod list using pod affected percentage
25+
if experimentsDetails.TargetPods == "" && chaosDetails.AppDetail.Label == "" {
26+
return errors.Errorf("Please provide one of the appLabel or TARGET_PODS")
27+
}
2528
targetPodList, err := common.GetPodList(experimentsDetails.TargetPods, experimentsDetails.PodsAffectedPerc, clients, chaosDetails)
2629
if err != nil {
2730
return err

0 commit comments

Comments
 (0)