-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathcassandra-operator-stale-state-2.yaml
46 lines (46 loc) · 1.43 KB
/
cassandra-operator-stale-state-2.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
workload: scaledown-scaleup
actions:
- actionType: pauseAPIServer
apiServerName: kind-control-plane3
pauseScope: pod/default/cassandra-test-cluster-dc1-rack1-1
trigger:
definitions:
- triggerName: trigger1
condition:
conditionType: onObjectUpdate
resourceKey: pod/default/cassandra-test-cluster-dc1-rack1-1
prevStateDiff: '{"metadata": {}}'
curStateDiff: '{"metadata": {"deletionGracePeriodSeconds": "SIEVE-NON-NIL",
"deletionTimestamp": "SIEVE-NON-NIL"}}'
convertStateToAPIForm: true
occurrence: 1
observationPoint:
when: afterAPIServerRecv
by: kind-control-plane3
expression: trigger1
- actionType: reconnectController
controllerLabel: cassandra-operator
reconnectAPIServer: kind-control-plane3
async: true
waitBefore: 10
trigger:
definitions:
- triggerName: trigger2
condition:
conditionType: onObjectCreate
resourceKey: persistentvolumeclaim/default/data-volume-cassandra-test-cluster-dc1-rack1-1
occurrence: 1
observationPoint:
when: afterAPIServerRecv
by: kind-control-plane
expression: trigger2
- actionType: resumeAPIServer
apiServerName: kind-control-plane3
pauseScope: pod/default/cassandra-test-cluster-dc1-rack1-1
trigger:
definitions:
- triggerName: trigger3
condition:
conditionType: onTimeout
timeoutValue: 20
expression: trigger3