File tree 3 files changed +10
-7
lines changed
experiments/pod-network-latency
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ LABEL com.github.actions.description="Different Chaos Experiment for Kubernetes"
10
10
LABEL com.github.actions.icon="terminal"
11
11
LABEL com.github.actions.color="blue"
12
12
13
+ ENV GOPATH=/github/home/go
14
+ ENV PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
15
+
13
16
ARG KUBECTL_VERSION=1.17.0
14
17
ADD https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl /usr/local/bin/kubectl
15
18
RUN chmod +x /usr/local/bin/kubectl
@@ -18,9 +21,6 @@ RUN apt-get update && apt-get install -y git && \
18
21
apt-get install -y ssh && \
19
22
apt install ssh rsync
20
23
21
- RUN export GOPATH=$HOME/go
22
- RUN export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
23
-
24
24
COPY README.md /
25
25
COPY entrypoint.sh /entrypoint.sh
26
26
COPY experiments ./experiments
Original file line number Diff line number Diff line change @@ -9,13 +9,16 @@ export KUBECONFIG=${HOME}/.kube/config
9
9
10
10
# #Setup
11
11
mkdir -p $HOME /go/src/github.com/mayadata-io
12
- rsync -az --delete ${GOPATH} /src/github.com/mayadata-io/
13
12
cd ${GOPATH} /src/github.com/mayadata-io/
13
+ dir=${GOPATH} /src/github.com/mayadata-io/chaos-ci-lib
14
+ if [ ! -d $dir ]
15
+ then
14
16
git clone https://github.com/mayadata-io/chaos-ci-lib.git
17
+ fi
15
18
cd chaos-ci-lib
16
19
17
20
# #Install litmus if it is not already installed
18
- if [ $INSTALL_LITMUS = true ]
21
+ if [ " $INSTALL_LITMUS " = " true" ]
19
22
then
20
23
go test tests/install-litmus_test.go -v -count=1
21
24
fi
24
27
go test tests/${EXPERIMENT_NAME} _test.go -v -count=1
25
28
26
29
# #litmus cleanup
27
- if [ $LITMUS_CLEANUP = true ]
30
+ if [ " $LITMUS_CLEANUP " = " true" ]
28
31
then
29
32
go test tests/uninstall-litmus_test.go -v -count=1
30
33
fi
Original file line number Diff line number Diff line change 39
39
TARGET_CONTAINER : nginx
40
40
TOTAL_CHAOS_DURATION : 60
41
41
NETWORK_INTERFACE : eth0
42
- NETWORK_LATENCY : 60000
42
+ NETWORK_LATENCY : 60000
43
43
# #Select true if you want to uninstall litmus after chaos
44
44
LITMUS_CLEANUP : true
45
45
` ` `
You can’t perform that action at this time.
0 commit comments