Skip to content

Commit

Permalink
update(disk-loss):Adding lib env in disk-loss experiment (#1457)
Browse files Browse the repository at this point in the history
Signed-off-by: shubhamchaudhary <[email protected]>
  • Loading branch information
ispeakc0de authored May 9, 2020
1 parent b2603bc commit 81bc298
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions experiments/generic/disk_loss/chaosutil.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# All code here is not indented because j2 is space sensitive
# checks if cloud_platform is set or not
{% if c_lib is defined and c_lib == 'litmus' %}
{% if cloud_platform is defined and cloud_platform == 'GKE' %}
c_util: /chaoslib/litmus/platform/gke/disk_loss.yml
{% elif cloud_platform is defined and cloud_platform == 'AWS' %}
c_util: /chaoslib/litmus/platform/aws/disk_loss.yml
{% endif %}
{% endif %}
1 change: 1 addition & 0 deletions experiments/generic/disk_loss/disk_loss_ansible_logic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
c_engine: "{{ lookup('env','CHAOSENGINE') }}"
chaos_pod_name: "{{ lookup('env','POD_NAME') }}"
chaos_uid: "{{ lookup('env','CHAOS_UID') }}"
c_lib: "{{ lookup('env','LIB') }}"
c_ns: "{{ lookup('env','CHAOS_NAMESPACE') }}"

tasks:
Expand Down
5 changes: 5 additions & 0 deletions experiments/generic/disk_loss/disk_loss_k8s_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ spec:
- name: CHAOS_NAMESPACE
value: ''

# provide the LIB
# only litmus supported
- name: LIB
value: 'litmus'

# provide auxiliary application details - namespace and labels of the applications
# sample input is - "ns1:app=percona,ns2:name=nginx"
- name: AUXILIARY_APPINFO
Expand Down

0 comments on commit 81bc298

Please sign in to comment.