forked from litmuschaos/litmus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
master.yaml
69 lines (65 loc) · 2.33 KB
/
master.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
# mayaonline can parse this yaml to obtain tests specific to applications (based on tag) & populate test params,
# fulfill pre-requisites etc, before deployment. The params are explicitly typed to prompt right values from user.
# Test parameters can be of different kinds such as ENV, configmap etc., with their own properties.
# The test has tags which will help with categorization & application-mapping.
# This master YAML uses JSONPointer to interpret the params: Refer https://tools.ietf.org/html/rfc6901#section-4
tests:
- name: openebs-volume-replica-failure
app_tags: ['mysql','percona','percona-cstor']
specPath: ./apps/percona/chaos/openebs_volume_replica_failure/run_litmus_test.yaml
patch:
- name: 'Application Namespace'
desc: ''
kind: env
type: string
op: 'replace'
path: '/spec/template/spec/containers/0/env/1/value'
value: 'percona'
- name: 'Application Label'
desc: ''
kind: env
type: string
op: 'replace'
path: '/spec/template/spec/containers/0/env/2/value'
value: 'name=percona' # Label is a key-value pair
- name: 'Application PVC'
desc: ''
kind: env
type: string
op: 'replace'
path: '/spec/template/spec/containers/0/env/3/value'
value: 'percona-mysql-claim'
- name: openebs-target-network-delay
app_tags: ['mysql','percona','percona-cstor']
specPath: ./apps/percona/chaos/openebs_target_network_delay/run_litmus_test.yaml
patch:
- name: 'Application Namespace'
desc: ''
kind: env
type: string
op: 'replace'
path: '/spec/template/spec/containers/0/env/1/value'
value: 'percona'
- name: 'Application Label'
desc: ''
kind: env
type: string
op: 'replace'
path: '/spec/template/spec/containers/0/env/2/value'
value: 'name=percona'
- name: 'Application PVC'
desc: ''
kind: env
type: string
op: 'replace'
path: '/spec/template/spec/containers/0/env/3/value'
value: 'percona-mysql-claim'
- name: 'Network Chaos Duration'
desc: ''
kind: env
type: string
op: 'replace'
path: '/spec/template/spec/containers/0/env/4/value'
# In pod spec this still needs to be quoted/taken as string (https://github.com/kubernetes/kubernetes/issues/2763)
value: '60'