Added Litmus-Checker to workflows (#334)

Signed-off-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com>
This commit is contained in:
Soumya Ghosh Dastidar
2020-09-24 10:38:50 +05:30
committed by GitHub
parent 12e3f2fabf
commit 39e7cbd19f
8 changed files with 32 additions and 69 deletions

View File

@@ -140,12 +140,8 @@ spec:
- name: CHAOS_KILL_COMMAND
value: "kill -9 $(ps afx | grep \"[dd] if /dev/zero\" | awk '{print $1}' | tr '\n' ' ')"
container:
image: lachlanevenson/k8s-kubectl
command: [sh, -c]
args:
[
'kubectl apply -f /tmp/chaosengine.yaml -n {{workflow.parameters.adminModeNamespace}} | echo "sleeping for 120s" | sleep 120 ',
]
image: litmuschaos/litmus-checker:latest
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
- name: revert-chaos
container:
@@ -153,5 +149,5 @@ spec:
command: [sh, -c]
args:
[
" sleep 20 | kubectl delete chaosengine kube-proxy-pod-memory-hog-chaos -n {{workflow.parameters.adminModeNamespace}}",
"kubectl delete chaosengine kube-proxy-pod-memory-hog-chaos -n {{workflow.parameters.adminModeNamespace}}",
]