Skip to content

Commit

Permalink
(refactor): Refactor openebs control plane pod delete chart (#1211)
Browse files Browse the repository at this point in the history
Signed-off-by: Raj <[email protected]>
  • Loading branch information
imrajdas authored and ksatchit committed Feb 14, 2020
1 parent 44e62d7 commit f40687b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
connection: local

vars:
c_experiment: "openebs-control-plane-pod-delete"
c_experiment: "openebs-control-plane-validation"
c_duration: "{{ lookup('env','TOTAL_CHAOS_DURATION') }}"
c_interval: "{{ lookup('env','CHAOS_INTERVAL') }}"
ramp_time: "{{ lookup('env','RAMP_TIME') }}"
Expand All @@ -14,7 +14,7 @@

tasks:
- block:
- include: openebs_control_plane_pod_delete_ansible_prerequisites.yml
- include: openebs_control_plane_validation_ansible_prerequisites.yml

- include_vars:
file: chaosutil.yml
Expand All @@ -41,7 +41,7 @@

## INJECT CHAOS ON CONTROL PLANE COMPONENTS
- name: Including main components
include_tasks: openebs_control_plane_pod_delete_internal_tasks.yml
include_tasks: openebs_control_plane_validation_internal_tasks.yml
loop: "{{ openebs.components }}"

- set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
apiVersion: batch/v1
kind: Job
metadata:
generateName: openebs-control-plane-pod-delete-
generateName: openebs-control-plane-validation-
spec:
template:
metadata:
labels:
experiment: openebs-control-plane-pod-delete
experiment: openebs-control-plane-validation
spec:
# Placeholder that is updated by the executor for automated runs
# Provide appropriate SA (with desired permissions) if executed manually
Expand Down Expand Up @@ -46,4 +46,4 @@ spec:
fieldPath: spec.serviceAccountName

command: ["/bin/bash"]
args: ["-c", "ansible-playbook ./experiments/openebs/openebs-control-plane-pod-delete/openebs_control_plane_pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0"]
args: ["-c", "ansible-playbook ./experiments/openebs/openebs-control-plane-validation/openebs_control_plane_validation_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0"]

0 comments on commit f40687b

Please sign in to comment.