(refactor): Modify container-kill experiment CR (#47)

* (refactor): Add permissions in container-kill experiment CR

Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>
This commit is contained in:
UDIT GAURAV
2019-11-11 17:39:22 +05:30
committed by Chandan Kumar
parent 6586f8fb43
commit b426a414c2
2 changed files with 33 additions and 6 deletions

View File

@@ -4,9 +4,28 @@ description:
kind: ChaosExperiment
metadata:
name: container-kill
version: 0.1.1
version: 0.1.3
spec:
definition:
permissions:
apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
resources:
- "daemonsets"
- "deployments"
- "statefulsets"
- "jobs"
- "pods"
- "pods/exec"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "*"
image: "litmuschaos/ansible-runner:ci"
args:
- -c
@@ -14,13 +33,18 @@ spec:
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: default
value: 'default'
- name: TARGET_CONTAINER
value: ""
- name: KILL_MODE
value: ""
value: ''
- name: LIB
value: ""
value: ''
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.4.8'
labels:
name: container-kill