-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1101 from ksatchit/v1.0.x-RC2-Clone
[Cherry Pick for RC2]
- Loading branch information
Showing
15 changed files
with
138 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
component_depth: 2 | ||
languages: | ||
- go | ||
exclude: | ||
- /build/plugins/.* | ||
- /build/utils/.* | ||
test: | ||
include: | ||
- /contribute/developer_guide/test_*\.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This is the list of organizations and users that publicly shared details of how they are using LitmusChaos for running chaos experiments. | ||
Please send PRs to add or remove organizations/users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## Note | ||
|
||
The chaoskube library is not supported by litmuschaos any more. It will be left here, because it can be used if the chaosServiceAccount has cluster-scope. As of version 0.8 chaosexperiments are namespace-scoped | ||
The chaoskube library is not supported by litmuschaos any more. It will be left here, because it can be used if the chaosServiceAccount has cluster-scope. As of version 1.0 the pod-delete (and other app-level) chaosexperiments are namespace-scoped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,72 @@ | ||
- name: Generate the powerfulseal deployment spec from template | ||
template: | ||
src: /chaoslib/powerfulseal/powerfulseal.j2 | ||
dest: powerfulseal.yml | ||
|
||
- name: Setup powerfulseal to initiate random pod chaos | ||
shell: | ||
kubectl apply -f powerfulseal.yml -n {{ a_ns }} | ||
args: | ||
executable: /bin/bash | ||
register: result | ||
failed_when: "result.rc != 0" | ||
|
||
- name: Confirm that powerfulseal pod is running | ||
shell: > | ||
kubectl get pod -l name=powerfulseal --no-headers -n {{ a_ns }} | ||
args: | ||
executable: /bin/bash | ||
register: result | ||
until: "'Running' in result.stdout" | ||
delay: 1 | ||
retries: 90 | ||
|
||
- name: Wait for chaos duration | ||
wait_for: timeout={{ c_duration }} | ||
|
||
- name: Tear down the powerfulseal deployment | ||
shell: | ||
kubectl delete -f powerfulseal.yml -n {{ a_ns }} | ||
args: | ||
executable: /bin/bash | ||
register: result | ||
failed_when: "result.rc != 0" | ||
|
||
- name: Confirm that powerfulseal pod is cleaned up | ||
shell: > | ||
kubectl get pod -l name=powerfulseal --no-headers -n {{ a_ns }} | ||
args: | ||
executable: /bin/bash | ||
register: result | ||
until: "'Running' not in result.stdout" | ||
delay: 1 | ||
retries: 120 | ||
- block: | ||
|
||
- name: Generate the powerfulseal deployment spec from template | ||
template: | ||
src: /chaoslib/powerfulseal/powerfulseal.j2 | ||
dest: powerfulseal.yml | ||
|
||
- name: Setup powerfulseal to initiate random pod chaos | ||
shell: | ||
kubectl apply -f powerfulseal.yml -n {{ app_ns }} | ||
args: | ||
executable: /bin/bash | ||
register: deployment_result | ||
failed_when: "deployment_result.rc != 0" | ||
|
||
- name: Confirm that powerfulseal pod is running | ||
shell: > | ||
kubectl get pod -l name=powerfulseal --no-headers -n {{ app_ns }} | ||
args: | ||
executable: /bin/bash | ||
register: result | ||
until: "'Running' in result.stdout" | ||
delay: 1 | ||
retries: 90 | ||
|
||
- name: Wait for chaos duration | ||
wait_for: timeout={{ c_duration }} | ||
|
||
- name: Tear down the powerfulseal deployment | ||
shell: | ||
kubectl delete -f powerfulseal.yml -n {{ app_ns }} | ||
args: | ||
executable: /bin/bash | ||
register: result | ||
failed_when: "result.rc != 0" | ||
|
||
- name: Confirm that powerfulseal pod is cleaned up | ||
k8s_facts: | ||
kind: Deployment | ||
label_selectors: | ||
- name=powerfulseal | ||
register: resource_deployment | ||
until: "resource_deployment.resources | length < 1" | ||
delay: 1 | ||
retries: 120 | ||
|
||
rescue: | ||
|
||
- block: | ||
|
||
- name: Tear down the powerfulseal deployment | ||
shell: > | ||
kubectl delete -f powerfulseal.yml -n {{ app_ns }} | ||
args: | ||
executable: /bin/bash | ||
when: deployment_result.rc == 0 | ||
|
||
- name: Confirm that powerfulseal pod is cleaned up | ||
k8s_facts: | ||
kind: Deployment | ||
label_selectors: | ||
- name=powerfulseal | ||
register: resource_deployment | ||
until: "resource_deployment.resources | length < 1" | ||
delay: 1 | ||
retries: 120 | ||
|
||
when: "deployment_result is defined" | ||
|
||
- fail: | ||
msg: "pod_failure_by_powerfulseal lib failed" | ||
when: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters