-
Notifications
You must be signed in to change notification settings - Fork 20
/
mongodb-operator-stale-state-3.yaml
44 lines (44 loc) · 1.35 KB
/
mongodb-operator-stale-state-3.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
workload: disable-enable-arbiter
actions:
- actionType: pauseAPIServer
apiServerName: kind-control-plane3
pauseScope: perconaservermongodb/default/mongodb-cluster
trigger:
definitions:
- triggerName: trigger1
condition:
conditionType: onObjectUpdate
resourceKey: perconaservermongodb/default/mongodb-cluster
prevStateDiff: '{"spec": {"replsets": [{"arbiter": {"enabled": true}}]}}'
curStateDiff: '{"spec": {"replsets": [{"arbiter": {"enabled": false}}]}}'
occurrence: 1
observationPoint:
when: afterAPIServerRecv
by: kind-control-plane3
expression: trigger1
- actionType: reconnectController
controllerLabel: mongodb-operator
reconnectAPIServer: kind-control-plane3
async: true
waitBefore: 10
trigger:
definitions:
- triggerName: trigger2
condition:
conditionType: onObjectCreate
resourceKey: statefulset/default/mongodb-cluster-rs0-arbiter
occurrence: 1
observationPoint:
when: afterAPIServerRecv
by: kind-control-plane
expression: trigger2
- actionType: resumeAPIServer
apiServerName: kind-control-plane3
pauseScope: perconaservermongodb/default/mongodb-cluster
trigger:
definitions:
- triggerName: trigger3
condition:
conditionType: onTimeout
timeoutValue: 20
expression: trigger3