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

@@ -138,12 +138,8 @@ spec:
- name: TOTAL_CHAOS_DURATION
value: '60' # in seconds
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:
@@ -151,5 +147,5 @@ spec:
command: [sh, -c]
args:
[
" sleep 20 | kubectl delete chaosengine kube-proxy-node-memory-hog-chaos -n {{workflow.parameters.adminModeNamespace}}",
"kubectl delete chaosengine kube-proxy-node-memory-hog-chaos -n {{workflow.parameters.adminModeNamespace}}",
]